:root {
  --aw-font: Inter, Pretendard, "Segoe UI", "Malgun Gothic", sans-serif;
  --aw-void: #060814;
  --aw-deep: #090d1a;
  --aw-gunmetal: #111827;
  --aw-panel: rgba(14, 21, 36, .94);
  --aw-panel-soft: rgba(17, 26, 43, .82);
  --aw-line: rgba(128, 153, 186, .2);
  --aw-line-bright: rgba(99, 230, 255, .42);
  --aw-ink: #dde7f4;
  --aw-muted: #91a3b8;
  --aw-aether: #63e6ff;
  --aw-gold: #f3c96b;
  --aw-enrage: #ff3e58;
  --aw-common: #d6d9df;
  --aw-rare: #a875ff;
  --aw-epic: #ef55d8;
  --aw-mythic: #ff9d45;
}

.aw-shell,
.aw-shell * { box-sizing: border-box; }

.aw-shell {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  color: var(--aw-ink);
  color-scheme: dark;
  background:
    radial-gradient(circle at 50% -12%, rgba(63, 102, 142, .2), transparent 36%),
    radial-gradient(circle at 7% 74%, rgba(53, 38, 115, .12), transparent 32%),
    linear-gradient(180deg, #080c18 0%, var(--aw-void) 58%, #04060d 100%);
  font-family: var(--aw-font);
  isolation: isolate;
}

.aw-shell::before,
.aw-shell::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.aw-shell::before {
  inset: 0;
  opacity: .24;
  background-image:
    linear-gradient(rgba(113, 144, 178, .1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(113, 144, 178, .1) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 68%);
}

.aw-shell::after {
  left: 5%;
  right: 5%;
  top: 77px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 230, 255, .2), transparent);
}

.aw-shell button,
.aw-shell input { font: inherit; }

.aw-shell button { -webkit-tap-highlight-color: transparent; }

.aw-shell button:focus-visible,
.aw-shell input:focus-visible {
  outline: 2px solid var(--aw-aether);
  outline-offset: 3px;
}

.aw-shell button:disabled { cursor: not-allowed; filter: saturate(.35); opacity: .45; }

.aw-topbar {
  position: relative;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(124px, 1fr) auto minmax(280px, 1fr);
  align-items: center;
  width: 100%;
  min-height: 78px;
  padding: 12px clamp(18px, 2.1vw, 40px);
  border-bottom: 1px solid rgba(128, 153, 186, .14);
  background: linear-gradient(180deg, rgba(9, 14, 27, .97), rgba(8, 12, 23, .86));
  box-shadow: 0 16px 42px rgba(0, 0, 0, .24);
  backdrop-filter: blur(18px);
}

.aw-topbar-compact { min-height: 66px; padding-block: 8px; }

.aw-brand { text-align: center; }
.aw-brand h1 { margin: 3px 0 0; color: #f4f8ff; font-size: clamp(23px, 2vw, 31px); font-weight: 950; line-height: 1; letter-spacing: .18em; text-indent: .18em; text-shadow: 0 0 26px rgba(99, 230, 255, .15); }
.aw-eyebrow { display: block; color: var(--aw-aether); font-size: 12px; font-weight: 900; line-height: 1.2; letter-spacing: .22em; }

.aw-back {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: max-content;
  min-width: 82px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(130, 157, 187, .28);
  border-radius: 11px;
  color: var(--aw-ink);
  background: rgba(17, 24, 39, .76);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.aw-back:hover { border-color: var(--aw-line-bright); background: rgba(24, 36, 54, .9); transform: translateX(-2px); }
.aw-back > span { position: relative; width: 15px; height: 12px; border-top: 2px solid transparent; }
.aw-back > span::before { content: ""; position: absolute; left: 1px; top: 5px; width: 13px; height: 2px; background: var(--aw-aether); }
.aw-back > span::after { content: ""; position: absolute; left: 1px; top: 2px; width: 7px; height: 7px; border-left: 2px solid var(--aw-aether); border-bottom: 2px solid var(--aw-aether); transform: rotate(45deg); }
.aw-back b { font-size: 13px; font-weight: 850; }

.aw-account {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: var(--aw-muted);
  font-size: 12px;
  white-space: nowrap;
}
.aw-account strong { color: var(--aw-ink); font-size: 15px; font-variant-numeric: tabular-nums; }
.aw-account i { width: 1px; height: 22px; margin: 0 5px; background: var(--aw-line); }

.aw-result-card {
  position: relative;
  border: 1px solid var(--aw-line);
  background: linear-gradient(155deg, rgba(18, 27, 44, .94), rgba(9, 14, 26, .94));
  box-shadow: inset 0 1px rgba(255, 255, 255, .035), 0 24px 60px rgba(0, 0, 0, .23);
}

.aw-panel-head,
.aw-workbench-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.aw-panel-head small,
.aw-workbench-head small {
  color: var(--aw-aether);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
}
.aw-panel-head h2,
.aw-workbench-head h2 { margin: 4px 0 0; color: #f1f6fd; font-size: 20px; font-weight: 900; line-height: 1.15; }
.aw-panel-head > span { display: grid; min-width: 50px; min-height: 35px; place-items: center; border: 1px solid rgba(99, 230, 255, .25); border-radius: 999px; color: var(--aw-aether); background: rgba(99, 230, 255, .06); font-size: 13px; font-weight: 900; }
.aw-workbench-head p { max-width: 720px; margin: 7px 0 0; color: var(--aw-muted); font-size: 14px; line-height: 1.55; }

.aw-lobby-boss { position: absolute; inset: 0; }
.aw-art-canvas { display: block; width: 100% !important; height: 100% !important; pointer-events: none; image-rendering: pixelated; }

.aw-launch {
  position: relative;
  display: flex;
  width: min(100%, 360px);
  min-height: 64px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  margin-top: 15px;
  padding: 10px 74px 10px 22px;
  overflow: hidden;
  border: 1px solid rgba(99, 230, 255, .7);
  border-radius: 13px;
  color: #eaffff;
  background: linear-gradient(112deg, rgba(15, 76, 96, .96), rgba(16, 38, 58, .97));
  box-shadow: inset 0 1px rgba(255, 255, 255, .12), 0 12px 34px rgba(18, 180, 210, .12);
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.aw-launch:hover { transform: translateY(-2px); filter: brightness(1.12); box-shadow: inset 0 1px rgba(255, 255, 255, .16), 0 16px 42px rgba(18, 180, 210, .21); }
.aw-launch > span { color: #baf7ff; font-size: 13px; font-weight: 900; }
.aw-launch > strong { margin-top: 3px; font-size: 18px; font-weight: 950; }
.aw-launch > i { position: absolute; right: 22px; top: 50%; width: 34px; height: 34px; border: 1px solid rgba(194, 250, 255, .48); border-radius: 50%; transform: translateY(-50%); }
.aw-launch > i::before { content: ""; position: absolute; left: 12px; top: 9px; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 11px solid #d9fdff; }
.aw-launch.is-loading > i { border-top-color: transparent; animation: aw-spin .65s linear infinite; }

.aw-derived { display: flex; flex: 1; flex-direction: column; margin-top: 13px; }
.aw-derived-row { display: flex; min-height: 39px; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 2px; border-bottom: 1px solid rgba(128, 153, 186, .12); }
.aw-derived-row span { color: var(--aw-muted); font-size: 13px; font-weight: 700; }
.aw-derived-row strong { color: var(--aw-ink); font-size: 14px; font-weight: 900; text-align: right; font-variant-numeric: tabular-nums; }
.aw-derived-row.stat-attack strong { color: #80edff; }
.aw-derived-row.stat-receive strong { color: #a9c8ff; }
.aw-derived-row.stat-critical strong { color: #ffd179; }
.aw-derived-row.stat-spin strong { color: #dcbdff; }

.aw-item-card.is-protected { opacity: .45; filter: saturate(.5); }
.aw-item-card.is-dim { opacity: .35; }
.aw-gear-count { display: flex; width: 100%; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; padding: 0 2px 10px; border-bottom: 1px solid rgba(128, 153, 186, .14); }
.aw-gear-count span { color: var(--aw-aether); font-size: 12px; font-weight: 900; letter-spacing: .07em; }
.aw-gear-count b { color: #dce9f7; font-size: 12px; font-weight: 900; }
.aw-gear-jump { margin-top: 8px; }
.aw-gear-jump button:disabled { opacity: .4; }

.rarity-common { --rarity: var(--aw-common); --rarity-rgb: 214, 217, 223; }
.rarity-rare { --rarity: var(--aw-rare); --rarity-rgb: 168, 117, 255; }
.rarity-epic { --rarity: var(--aw-epic); --rarity-rgb: 239, 85, 216; }
.rarity-mythic { --rarity: var(--aw-mythic); --rarity-rgb: 255, 157, 69; }
.rarity-primal { --rarity: #8ef7c9; --rarity-rgb: 142, 247, 201; }
.rarity-cosmic { --rarity: #79c4ff; --rarity-rgb: 121, 196, 255; }
.aw-item-card[class*="rarity-"],
.aw-chest-card[class*="rarity-"] { border-color: rgba(var(--rarity-rgb), .36); }
.aw-item-card[class*="rarity-"]::before,
.aw-chest-card[class*="rarity-"]::before { content: ""; position: absolute; left: 0; top: 12%; bottom: 12%; width: 2px; background: var(--rarity); box-shadow: 0 0 12px rgba(var(--rarity-rgb), .8); }
.aw-item-card[class*="rarity-"] .aw-item-copy small,
.aw-chest-card[class*="rarity-"] > small { color: var(--rarity); }
.aw-item-card[class*="rarity-"] .aw-rarity-flare { background: var(--rarity); }
.rarity-rare { box-shadow: inset 0 0 22px rgba(168, 117, 255, .035); }
.rarity-epic { box-shadow: inset 0 0 28px rgba(239, 85, 216, .06), 0 0 18px rgba(239, 85, 216, .04); }
.rarity-mythic { box-shadow: inset 0 0 30px rgba(255, 157, 69, .075), 0 0 24px rgba(255, 106, 36, .06); }
.aw-item-card.rarity-epic .aw-rarity-flare,
.aw-chest-card.rarity-epic .aw-chest-art::after { animation: aw-epic 2.6s ease-in-out infinite; }
.aw-item-card.rarity-mythic .aw-rarity-flare,
.aw-chest-card.rarity-mythic .aw-chest-art::after { animation: aw-mythic 1.9s ease-in-out infinite; }

.aw-item-detail { min-height: 330px; padding: 17px; border: 1px solid rgba(128, 153, 186, .18); border-radius: 14px; background: rgba(5, 9, 17, .55); }
.aw-detail-hero { display: grid; grid-template-columns: 135px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 146px; overflow: hidden; border-bottom: 1px solid rgba(128, 153, 186, .16); }
.aw-detail-hero canvas { width: 128px; height: 128px; image-rendering: pixelated; }
.aw-detail-hero small { color: var(--rarity); font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.aw-detail-hero h3 { margin: 6px 0 0; color: #f5f8fc; font-size: 19px; font-weight: 950; }
.aw-detail-hero strong { display: block; margin-top: 9px; color: var(--aw-ink); font-size: 13px; line-height: 1.45; }
.aw-effect-ledger { display: grid; gap: 6px; margin-top: 14px; padding: 10px; border: 1px solid rgba(128, 153, 186, .16); border-radius: 10px; background: rgba(4, 8, 15, .52); }
.aw-effect-ledger > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 12px; min-height: 28px; padding: 5px 7px; border-bottom: 1px solid rgba(128, 153, 186, .1); }
.aw-effect-ledger > div:last-child { border-bottom: 0; }
.aw-effect-ledger span { color: var(--aw-muted); font-size: 12px; font-weight: 750; }
.aw-effect-ledger strong { color: #dce8f5; font-size: 13px; font-weight: 900; text-align: right; }
.aw-effect-ledger .is-final { margin: 1px 0; border: 1px solid rgba(99, 230, 255, .2); border-radius: 7px; background: rgba(99, 230, 255, .055); }
.aw-effect-ledger .is-final strong { color: var(--aw-aether); }
.aw-equipped-compare { display: grid; gap: 5px; margin-top: 8px; padding: 10px 12px; border-left: 2px solid rgba(168, 117, 255, .58); border-radius: 0 8px 8px 0; background: rgba(168, 117, 255, .055); }
.aw-equipped-compare span { color: #c0abed; font-size: 12px; font-weight: 900; letter-spacing: .05em; }
.aw-equipped-compare strong { overflow-wrap: anywhere; color: #eadfff; font-size: 13px; line-height: 1.5; }
.aw-xp { margin-top: 18px; }
.aw-xp > div:first-child { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.aw-xp > div:first-child span { color: var(--aw-muted); }
.aw-xp > div:first-child strong { color: var(--aw-gold); }
.aw-xp-track { position: relative; height: 8px; margin-top: 9px; overflow: hidden; border: 1px solid rgba(126, 148, 177, .18); border-radius: 999px; background: rgba(1, 4, 9, .72); }
.aw-xp-track > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #3cbcd7, var(--aw-aether)); box-shadow: 0 0 14px rgba(99, 230, 255, .4); }
.aw-xp > small { display: block; margin-top: 7px; color: var(--aw-muted); font-size: 12px; text-align: right; }
.aw-detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
.aw-detail-actions .aw-primary { grid-column: 1 / -1; }

.aw-primary,
.aw-secondary,
.aw-text-btn,
.aw-replay-btn,
.aw-replay-controls button,
.aw-replay-timeline button {
  min-height: 41px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, filter .16s ease;
}
.aw-primary { border: 1px solid rgba(99, 230, 255, .62); color: #e9fdff; background: linear-gradient(120deg, #15566b, #143044); box-shadow: inset 0 1px rgba(255, 255, 255, .08); }
.aw-primary:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.12); }
.aw-secondary { border: 1px solid rgba(136, 158, 185, .28); color: var(--aw-ink); background: rgba(22, 31, 49, .88); }
.aw-secondary:hover:not(:disabled), .aw-secondary.is-on { border-color: rgba(99, 230, 255, .48); background: rgba(26, 51, 68, .88); }
.aw-text-btn { min-height: 35px; padding: 0 13px; border: 0; color: var(--aw-aether); background: transparent; }
.aw-text-btn:hover { background: rgba(99, 230, 255, .07); }

.aw-selection-empty,
.aw-empty { display: flex; min-height: 190px; flex-direction: column; align-items: center; justify-content: center; padding: 26px; color: var(--aw-muted); text-align: center; }
.aw-selection-empty > span { color: var(--aw-aether); font-size: 12px; font-weight: 900; letter-spacing: .13em; }
.aw-selection-empty > strong,
.aw-empty > strong { margin-top: 7px; color: var(--aw-ink); font-size: 16px; font-weight: 900; }
.aw-selection-empty > p,
.aw-empty > span { max-width: 420px; margin: 8px 0 0; font-size: 13px; line-height: 1.55; }
.aw-empty-wide { grid-column: 1 / -1; width: 100%; }

.aw-auto-material { min-height:34px; padding:0 11px; color:var(--aw-aether); border:1px solid rgba(99,230,255,.24); border-radius:7px; background:rgba(99,230,255,.06); font:850 12px/1 var(--aw-font); cursor:pointer; }
.aw-material-ledger { display: grid; width: 100%; gap: 5px; margin: 12px 0; padding: 9px; border: 1px solid rgba(128, 153, 186, .16); border-radius: 10px; background: rgba(3, 7, 13, .58); }
.aw-material-ledger > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 10px; min-height: 25px; padding: 4px 5px; border-bottom: 1px solid rgba(128, 153, 186, .09); }
.aw-material-ledger > div:last-child { border-bottom: 0; }
.aw-material-ledger span { color: var(--aw-muted); font-size: 12px; font-weight: 760; line-height: 1.35; }
.aw-material-ledger b { color: #dce9f7; font-size: 12px; text-align: right; }
.aw-material-ledger .is-result { border: 1px solid rgba(99, 230, 255, .2); border-radius: 7px; background: rgba(99, 230, 255, .055); }
.aw-material-ledger .is-result b { color: var(--aw-aether); }

.aw-synth-rarity { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.aw-synth-rarity span { display: grid; min-width: 74px; min-height: 35px; place-items: center; border: 1px solid rgba(var(--rarity-rgb), .48); border-radius: 8px; color: var(--rarity); background: rgba(var(--rarity-rgb), .07); font-size: 13px; font-weight: 900; }
.aw-synth-rarity i { color: var(--aw-muted); font-style: normal; }
.aw-focus { width: 100%; margin-top: 17px; padding: 13px; border: 1px solid rgba(128, 153, 186, .15); border-radius: 10px; }
.aw-focus > div:first-child { display: flex; justify-content: space-between; color: var(--aw-muted); font-size: 12px; }
.aw-focus b { color: var(--aw-aether); }
.aw-focus small { display: block; margin-top: 6px; color: var(--aw-muted); font-size: 12px; line-height: 1.45; text-align: right; }
.aw-synthesis-ledger { margin-bottom: 8px; }
.aw-material-contributions { width: 100%; margin: 2px 0 8px; padding: 9px 10px; border: 1px solid rgba(255, 202, 104, .14); border-radius: 9px; background: rgba(255, 202, 104, .035); }
.aw-material-contributions > span { color: var(--aw-gold); font-size: 12px; font-weight: 900; letter-spacing: .05em; }
.aw-material-contributions ul { display: grid; gap: 4px; max-height: 104px; margin: 7px 0 0; padding: 0 3px 0 0; overflow: auto; list-style: none; scrollbar-color: rgba(255, 202, 104, .32) transparent; }
.aw-material-contributions li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; color: var(--aw-muted); font-size: 12px; line-height: 1.45; }
.aw-material-contributions li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aw-material-contributions li b { color: #f7d99d; }
.aw-synthesis-rules { width: 100%; margin: 8px 0 13px; padding: 0; color: var(--aw-muted); font-size: 12px; line-height: 1.65; list-style: none; }
.aw-synthesis-rules li::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 8px 2px 0; background: var(--aw-aether); transform: rotate(45deg); }

.aw-chest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin-top: 22px; }
.aw-chest-summary { margin-top: 16px; padding: 12px; border: 1px solid rgba(99, 230, 255, .14); border-radius: 12px; background: linear-gradient(120deg, rgba(99, 230, 255, .035), rgba(5, 9, 17, .64)); }
.aw-chest-summary > header { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 0 4px 9px; border-bottom: 1px solid rgba(128, 153, 186, .11); }
.aw-chest-summary > header span { color: var(--aw-aether); font-size: 12px; font-weight: 900; letter-spacing: .07em; }
.aw-chest-summary > header strong { color: #dce8f4; font-size: 12px; }
.aw-chest-summary > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.aw-chest-summary-card { display: grid; grid-template-columns: 62px minmax(0, 1fr); min-height: 70px; align-items: center; gap: 5px; padding: 4px 9px 4px 3px; overflow: hidden; border: 1px solid rgba(var(--rarity-rgb), .24); border-radius: 9px; background: radial-gradient(circle at 20% 50%, rgba(var(--rarity-rgb), .1), transparent 55%), rgba(7, 12, 21, .72); }
.aw-chest-summary-card canvas { width: 62px; height: 62px; image-rendering: pixelated; }
.aw-chest-summary-card > div { display: flex; min-width: 0; flex-direction: column; }
.aw-chest-summary-card small { color: var(--rarity); font-size: 12px; font-weight: 900; }
.aw-chest-summary-card strong { margin-top: 2px; color: #fff; font: 950 20px/1 Arial, sans-serif; }
.aw-chest-summary-card span { margin-top: 5px; overflow: hidden; color: var(--aw-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.aw-chest-total { display:flex; align-items:baseline; justify-content:flex-end; gap:9px; margin-top:10px; color:var(--aw-muted); font-size:12px; }
.aw-chest-total strong { color:var(--aw-aether); font:950 17px/1 Arial,sans-serif; }
.aw-chest-pager { margin-top:16px; padding-top:14px; border-top:1px solid rgba(128,153,186,.12); }
.aw-chest-card { position: relative; display: flex; min-height: 292px; flex-direction: column; align-items: center; padding: 13px 15px 15px; overflow: hidden; border: 1px solid rgba(128, 153, 186, .2); border-radius: 14px; background: radial-gradient(circle at 50% 34%, rgba(var(--rarity-rgb), .1), transparent 44%), rgba(7, 12, 22, .72); }
.aw-chest-art { position: relative; width: 150px; height: 150px; }
.aw-chest-art::after { content: ""; position: absolute; inset: 28px; z-index: -1; border-radius: 50%; background: var(--rarity); opacity: .18; filter: blur(18px); }
.aw-chest-art canvas { width: 150px; height: 150px; image-rendering: pixelated; }
.aw-chest-card > small { font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.aw-chest-card > strong { margin-top: 5px; font-size: 15px; font-weight: 900; }
.aw-chest-card > span { margin-top: 5px; color: var(--aw-muted); font-size: 12px; }
.aw-chest-card > button { width: 100%; margin-top: auto; }

.aw-rank-preview { width: min(1320px, 100%); margin: 23px auto 0; padding: 22px; border-radius: 17px; }
.aw-rank-rule { max-width: 720px; margin: 7px 0 0; color: var(--aw-muted); font-size: 13px; line-height: 1.5; }
.aw-rank-row { display: grid; grid-template-columns: 52px minmax(170px, 1fr) 150px 190px 88px; min-height: 62px; align-items: center; gap: 11px; padding: 6px 12px; border-bottom: 1px solid rgba(128, 153, 186, .11); border-radius: 8px; transition: background .16s ease, box-shadow .16s ease; }
.aw-rank-row.is-admin { grid-template-columns: 52px minmax(140px, 1fr) 150px 190px 88px 82px; }
.aw-rank-row.is-suspect { border: 1px solid rgba(255, 59, 92, .82); border-radius: 9px; background: rgba(58, 12, 22, .28); box-shadow: 0 0 0 1px rgba(255, 59, 92, .22) inset, 0 0 12px rgba(255, 59, 92, .16); }
.aw-rank-del { min-height: 34px; padding: 0 10px; border-radius: 8px; border: 1px solid rgba(255, 92, 120, .55); background: rgba(46, 12, 20, .8); color: #ffb3c0; font-size: 11.5px; font-weight: 800; cursor: pointer; }
.aw-rank-del:hover { background: rgba(72, 16, 28, .95); border-color: rgba(255, 122, 145, .85); color: #ffd3db; }
.aw-rank-del:disabled { opacity: .45; cursor: default; }
.aw-rank-row:hover { background: rgba(99, 230, 255, .035); }
.aw-rank-row.is-me { border: 1px solid rgba(99, 230, 255, .3); background: linear-gradient(90deg, rgba(99, 230, 255, .1), rgba(99, 230, 255, .025)); }
.aw-rank-row.is-jump { animation: aw-rank-jump 1.8s ease; }
.aw-rank-num { color: #72849a; font-size: 18px; font-weight: 950; text-align: center; font-variant-numeric: tabular-nums; }
.aw-rank-row:nth-child(1) .aw-rank-num { color: #ffe184; }
.aw-rank-row:nth-child(2) .aw-rank-num { color: #dbe8f4; }
.aw-rank-row:nth-child(3) .aw-rank-num { color: #e2a476; }
.aw-rank-player { display: flex; min-width: 0; min-height: 42px; flex-direction: column; align-items: flex-start; justify-content: center; padding: 0 9px; border: 0; border-radius: 8px; color: var(--aw-ink); text-align: left; background: transparent; cursor: pointer; }
.aw-rank-player:hover { background: rgba(99, 230, 255, .07); }
.aw-rank-player strong { max-width: 100%; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.aw-rank-player small { margin-top: 3px; color: var(--aw-muted); font-size: 12px; }
.aw-rank-floor { display: flex; flex-direction: column; }
.aw-rank-floor strong { color: #f4f8fc; font-size: 16px; font-weight: 950; }
.aw-rank-floor span { margin-top: 3px; color: var(--aw-muted); font-size: 12px; }
.aw-rank-metrics { display: flex; gap: 12px; color: #a8bad0; font-size: 12px; font-variant-numeric: tabular-nums; }
.aw-replay-btn { min-height: 34px; padding: 0 10px; border: 1px solid rgba(168, 117, 255, .38); color: #cfb7ff; background: rgba(81, 53, 132, .18); }
.aw-my-rank { display: grid; grid-template-columns: 100px 1fr auto; width: 100%; min-height: 53px; align-items: center; gap: 13px; margin-top: 13px; padding: 7px 16px; border: 1px solid rgba(99, 230, 255, .28); border-radius: 10px; color: var(--aw-ink); text-align: left; background: rgba(99, 230, 255, .065); cursor: pointer; }
.aw-my-rank > span { color: var(--aw-aether); font-size: 12px; font-weight: 900; }
.aw-my-rank > strong { font-size: 14px; }
.aw-my-rank > small { color: var(--aw-muted); font-size: 12px; }
.aw-my-rank-empty { display: flex; cursor: default; }
.aw-ranking-scroll { max-height: min(62vh, 680px); margin-top: 13px; padding-right: 5px; overflow: auto; scrollbar-color: rgba(99, 230, 255, .45) rgba(5, 8, 16, .5); }
.aw-ranking-more { display:flex; min-height:64px; align-items:center; justify-content:center; gap:14px; margin-top:8px; border:1px solid rgba(99,230,255,.13); border-radius:8px; background:linear-gradient(90deg,transparent,rgba(99,230,255,.045),transparent); }
.aw-ranking-more > span { color:var(--aw-muted); font:800 12px/1 var(--aw-font); letter-spacing:.06em; }
.aw-ranking-more > button { min-width:132px; }

.aw-lobby {
  --lb-ink: #f8f2ff;
  --lb-muted: #ab9cc8;
  --lb-line: rgba(238, 216, 255, .11);
  --lb-line-soft: rgba(238, 216, 255, .07);
  --lb-card: linear-gradient(168deg, rgba(44, 28, 70, .93), rgba(25, 15, 44, .96));
  --lb-well: rgba(15, 8, 30, .55);
  --lb-mint: #6fe8c0;
  --lb-mint-deep: #0d2b20;
  --lb-pink: #ff7ac8;
  --lb-peach: #ffb46b;
  --lb-butter: #ffd76e;
  --lb-sky: #8fd7ff;
  color: var(--lb-ink);
  background:
    radial-gradient(1100px 540px at 16% -8%, rgba(255, 122, 200, .14), transparent 60%),
    radial-gradient(900px 520px at 86% 2%, rgba(111, 232, 192, .1), transparent 55%),
    radial-gradient(820px 600px at 52% 110%, rgba(143, 120, 255, .16), transparent 62%),
    linear-gradient(180deg, #241340 0%, #180d2c 46%, #100821 100%);
}
.aw-lobby::before {
  inset: 0;
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
  opacity: .16;
  background-image: radial-gradient(rgba(255, 236, 255, .5) 1px, transparent 1.5px);
  background-size: 30px 30px;
}
.aw-lobby::after { display: none; }
.aw-lobby button:focus-visible,
.aw-lobby input:focus-visible,
.aw-lobby select:focus-visible { outline: 2px solid var(--lb-mint); outline-offset: 3px; }

.aw-lobby .aw-topbar { border-bottom: 1px solid var(--lb-line); background: rgba(22, 12, 40, .5); }
.aw-lobby .aw-brand h1 { color: #fff6ff; text-shadow: 0 0 26px rgba(255, 122, 200, .28); }
.aw-lobby .aw-eyebrow { color: var(--lb-mint); }
.aw-lobby .aw-back { border-color: var(--lb-line); background: rgba(34, 20, 58, .82); color: var(--lb-ink); }
.aw-lobby .aw-back:hover { border-color: rgba(255, 170, 220, .4); background: rgba(46, 28, 76, .92); }
.aw-lobby .aw-back > span::before { background: var(--lb-mint); }
.aw-lobby .aw-back > span::after { border-color: var(--lb-mint); }
.aw-lobby .aw-account { border-color: var(--lb-line); background: rgba(30, 17, 52, .7); color: var(--lb-muted); }
.aw-lobby .aw-account i { background: var(--lb-line); }
.aw-lobby .aw-account strong { color: #ffe9b8; }

.aw-lobby .aw-lobby-scroll {
  height: calc(100% - 78px);
  padding: 22px clamp(18px, 2.6vw, 52px) 76px;
  overflow: auto;
  scrollbar-color: rgba(255, 140, 205, .4) rgba(14, 7, 27, .6);
  scrollbar-width: thin;
}
:is(.aw-lobby, .aw-work-layer) ::-webkit-scrollbar { width: 9px; height: 9px; }
:is(.aw-lobby, .aw-work-layer) ::-webkit-scrollbar-track { background: rgba(14, 7, 27, .6); }
:is(.aw-lobby, .aw-work-layer) ::-webkit-scrollbar-thumb { border: 2px solid rgba(14, 7, 27, .8); border-radius: 20px; background: linear-gradient(180deg, rgba(255, 140, 205, .55), rgba(140, 110, 230, .55)); }

.aw-lobby .aw-panel-head { align-items: center; }
.aw-lobby .aw-panel-head small { color: var(--lb-mint); letter-spacing: .18em; }
.aw-lobby .aw-panel-head h2 { color: #fdf7ff; }
.aw-lobby .aw-panel-head > span { border-color: rgba(111, 232, 192, .3); color: var(--lb-mint); background: rgba(111, 232, 192, .08); }

.aw-lobby .aw-command-deck {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(330px, 1.12fr) minmax(300px, 1fr);
  gap: clamp(14px, 1.3vw, 22px);
  width: min(1660px, 100%);
  margin: 0 auto;
}
.aw-lobby .aw-stat-panel,
.aw-lobby .aw-launch-panel,
.aw-lobby .aw-loadout-panel,
.aw-lobby .aw-workbench,
.aw-lobby .aw-rank-preview {
  position: relative;
  border: 1px solid var(--lb-line);
  border-radius: 22px;
  background: var(--lb-card);
  box-shadow: inset 0 1px rgba(255, 255, 255, .05), 0 22px 55px rgba(8, 3, 20, .4);
}

.aw-lobby .aw-hero-stage {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border: 1px solid var(--lb-line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 86%, rgba(255, 175, 120, .16), transparent 52%),
    radial-gradient(circle at 18% 12%, rgba(255, 122, 200, .12), transparent 42%),
    linear-gradient(180deg, #321d56 0%, #201238 62%, #170c2c 100%);
  box-shadow: inset 0 1px rgba(255, 255, 255, .06), 0 22px 55px rgba(8, 3, 20, .4);
}
.aw-lobby .aw-stage-frame { position: absolute; inset: 0; }
.aw-lobby .aw-stage-grid {
  position: absolute;
  inset: 0;
  opacity: .5;
  background:
    radial-gradient(rgba(255, 240, 255, .3) 1px, transparent 1.6px),
    radial-gradient(circle at 50% 100%, rgba(255, 190, 140, .14), transparent 46%);
  background-size: 34px 34px, 100% 100%;
  mask-image: radial-gradient(120% 100% at 50% 40%, #000 40%, transparent 92%);
}
.aw-lobby .aw-stage-caption {
  position: absolute;
  z-index: 5;
  left: 16px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 9px 16px 10px;
  border: 1px solid rgba(255, 214, 236, .2);
  border-radius: 14px;
  background: rgba(20, 10, 36, .78);
  backdrop-filter: blur(5px);
}
.aw-lobby .aw-stage-caption small { color: var(--lb-pink); font-size: 12px; font-weight: 900; letter-spacing: .14em; }
.aw-lobby .aw-stage-caption strong { font-size: 16px; font-weight: 950; color: #fff3fb; }

.aw-lobby .aw-stat-panel { display: flex; flex-direction: column; padding: 18px 18px 16px; }
.aw-lobby .aw-power-orb {
  position: relative;
  display: flex;
  min-height: 158px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.aw-lobby .aw-orb-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle, rgba(255, 215, 110, .16) 0 56%, transparent 57%),
    conic-gradient(from 210deg, rgba(255, 215, 110, .85), rgba(255, 150, 110, .25), rgba(255, 122, 200, .55), rgba(255, 215, 110, .85));
  -webkit-mask: radial-gradient(circle, #000 0 55%, #000 55%, transparent 100%);
  mask-image: radial-gradient(circle, rgba(0,0,0,.55) 54%, #000 56%, #000 63%, transparent 65%);
  animation: aw-orb-turn 9s linear infinite;
}
.aw-lobby .aw-power-orb span { position: relative; color: var(--lb-butter); font-size: 12px; font-weight: 900; letter-spacing: .22em; text-indent: .22em; }
.aw-lobby .aw-power-orb strong { position: relative; margin-top: 4px; max-width: 100%; color: #fff3cd; font-size: clamp(30px, 2.4vw, 42px); font-weight: 950; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; text-shadow: 0 0 26px rgba(255, 205, 110, .35); }
.aw-lobby .aw-power-orb small { position: relative; margin-top: 7px; color: var(--lb-muted); font-size: 12px; }
.aw-lobby .aw-stat-panel .aw-derived { display: grid; flex: 1; grid-template-columns: 1fr 1fr; align-content: end; gap: 7px; margin-top: 14px; }
.aw-lobby .aw-stat-panel .aw-derived-row {
  min-height: 42px;
  gap: 10px;
  padding: 6px 12px;
  border: 1px solid var(--lb-line-soft);
  border-bottom: 1px solid var(--lb-line-soft);
  border-radius: 12px;
  background: rgba(255, 240, 255, .035);
}
.aw-lobby .aw-stat-panel .aw-derived-row.stat-spin { grid-column: 1 / -1; }
.aw-lobby .aw-derived-row span { color: var(--lb-muted); font-size: 12px; font-weight: 800; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aw-lobby .aw-derived-row strong { color: var(--lb-ink); font-size: 13px; }
.aw-lobby .aw-derived-row.stat-attack strong { color: #ffb1d9; }
.aw-lobby .aw-derived-row.stat-receive strong { color: var(--lb-sky); }
.aw-lobby .aw-derived-row.stat-critical strong { color: var(--lb-butter); }
.aw-lobby .aw-derived-row.stat-overflow strong { color: #ffc79b; }
.aw-lobby .aw-derived-row.stat-chest strong { color: var(--lb-mint); }
.aw-lobby .aw-derived-row.stat-spin strong { color: #d9c4ff; }

.aw-lobby .aw-launch-panel { display: flex; flex-direction: column; justify-content: center; padding: 20px 22px; overflow: hidden; }
.aw-lobby .aw-launch-panel::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 0;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 180, 108, .75), rgba(255, 122, 200, .75), transparent);
}
.aw-lobby .aw-pb { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.aw-lobby .aw-pb > span { color: var(--lb-muted); font-size: 13px; font-weight: 800; letter-spacing: .06em; }
.aw-lobby .aw-pb > strong { margin-top: 6px; color: #fff; font-size: clamp(48px, 3.6vw, 68px); font-weight: 950; line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; text-shadow: 0 0 34px rgba(255, 150, 200, .3); }
.aw-lobby .aw-pb > strong i { margin-left: 6px; color: var(--lb-pink); font-size: 20px; font-style: normal; font-weight: 900; letter-spacing: 0; }
.aw-lobby .aw-pb > small { margin-top: 8px; color: var(--lb-muted); font-size: 12px; }
.aw-lobby .aw-start-btn {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 96px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  margin-top: 18px;
  padding: 12px 92px 14px 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 226, 244, .55);
  border-radius: 20px;
  color: #3a1030;
  background: linear-gradient(115deg, #ffcf78 0%, #ff9d7e 46%, #ff77c4 100%);
  box-shadow:
    inset 0 2px rgba(255, 255, 255, .5),
    inset 0 -12px 24px rgba(190, 44, 118, .28),
    0 16px 40px rgba(255, 110, 180, .26);
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.aw-lobby .aw-start-btn::after {
  content: "";
  position: absolute;
  top: -30%;
  bottom: -30%;
  left: -46%;
  width: 34%;
  pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: skewX(-18deg);
  animation: aw-candy-shine 4.6s ease-in-out infinite;
}
.aw-lobby .aw-start-btn:hover { transform: translateY(-2px); filter: brightness(1.05) saturate(1.08); box-shadow: inset 0 2px rgba(255, 255, 255, .55), inset 0 -12px 24px rgba(190, 44, 118, .3), 0 20px 48px rgba(255, 110, 180, .36); }
.aw-lobby .aw-start-btn:active { transform: translateY(1px); }
.aw-lobby .aw-start-btn > span { font-size: 13px; font-weight: 900; letter-spacing: .1em; color: rgba(84, 22, 64, .82); }
.aw-lobby .aw-start-btn > strong { margin-top: 4px; font-size: 23px; font-weight: 950; letter-spacing: -.01em; }
.aw-lobby .aw-start-btn > i { position: absolute; right: 24px; top: 50%; width: 44px; height: 44px; border: 2px solid rgba(70, 16, 52, .55); border-radius: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, .28); }
.aw-lobby .aw-start-btn > i::before { content: ""; position: absolute; left: 16px; top: 12px; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 13px solid #4a1238; }
.aw-lobby .aw-start-btn.is-loading > i { border-top-color: transparent; animation: aw-spin .65s linear infinite; }
.aw-lobby .aw-start-btn.is-loading > i::before { display: none; }
.aw-lobby .aw-launch-note { max-width: none; margin: 13px 2px 0; color: var(--lb-muted); font-size: 12px; line-height: 1.5; text-align: left; }

.aw-lobby .aw-loadout-panel { width: min(1660px, 100%); margin: clamp(14px, 1.3vw, 22px) auto 0; padding: 18px 22px 20px; }
.aw-lobby .aw-loadout-panel::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 0;
  width: 148px;
  height: 2px;
  background: linear-gradient(90deg, var(--lb-mint), transparent);
}
.aw-lobby .aw-loadout-panel .aw-panel-head small::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--lb-mint); box-shadow: 0 0 9px var(--lb-mint); vertical-align: 1px; }
.aw-lobby .aw-loadout-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.aw-lobby .aw-slot-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 150px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 12px 6px 12px;
  overflow: hidden;
  border: 1px solid rgba(var(--rarity-rgb, 214, 217, 223), .42);
  border-radius: 16px;
  color: var(--lb-ink);
  background: linear-gradient(175deg, rgba(52, 34, 80, .88), rgba(28, 17, 50, .94));
  box-shadow: inset 0 1px rgba(255, 255, 255, .07);
}
.aw-lobby button.aw-slot-card { cursor: pointer; transition: transform .17s ease, border-color .17s ease, box-shadow .17s ease; }
.aw-lobby button.aw-slot-card:hover { z-index: 2; transform: translateY(-3px); border-color: rgba(var(--rarity-rgb), .8); box-shadow: inset 0 1px rgba(255, 255, 255, .1), 0 12px 26px rgba(8, 3, 20, .5), 0 0 18px rgba(var(--rarity-rgb), .22); }
.aw-lobby .aw-slot-glow { position: absolute; left: 50%; top: 42%; width: 84px; height: 84px; border-radius: 50%; background: var(--rarity); opacity: .16; filter: blur(20px); transform: translate(-50%, -50%); }
.aw-lobby .aw-slot-card canvas { width: 76px; height: 76px; image-rendering: pixelated; }
.aw-lobby .aw-slot-card > span { z-index: 1; max-width: 100%; overflow: hidden; margin-top: 5px; font-size: 13px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.aw-lobby .aw-slot-card > small { z-index: 1; margin-top: 2px; color: var(--rarity); font-size: 12px; font-weight: 900; }
.aw-lobby .aw-slot-level { position: absolute; z-index: 2; top: 8px; right: 9px; padding: 3px 8px; border: 1px solid rgba(255, 215, 110, .38); border-radius: 999px; color: #ffe6a3; background: rgba(24, 12, 40, .88); font-size: 12px; font-weight: 950; font-style: normal; }
.aw-lobby .aw-slot-empty { border: 1px dashed rgba(238, 216, 255, .18); background: rgba(255, 240, 255, .025); color: #7d6f9c; box-shadow: none; }
.aw-lobby .aw-slot-empty i { display: grid; width: 38px; height: 38px; place-items: center; border: 1px dashed rgba(238, 216, 255, .26); border-radius: 50%; font-size: 21px; font-style: normal; }
.aw-lobby .aw-slot-empty span { margin-top: 9px; font-size: 12px; font-weight: 800; }
.aw-lobby .aw-slot-empty.is-locked { opacity: .45; }

.aw-lobby .aw-tabs {
  display: flex;
  position: sticky;
  z-index: 30;
  top: -23px;
  justify-content: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin: clamp(16px, 1.6vw, 24px) auto 14px;
  padding: 6px;
  border: 1px solid var(--lb-line);
  border-radius: 999px;
  background: rgba(20, 11, 38, .92);
  box-shadow: 0 14px 34px rgba(8, 3, 20, .45);
  backdrop-filter: blur(7px);
}
.aw-lobby .aw-tab {
  display: flex;
  min-height: 48px;
  min-width: 138px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2px 22px;
  border: 0;
  border-radius: 999px;
  color: var(--lb-muted);
  background: transparent;
  cursor: pointer;
  transition: color .17s ease, background .17s ease, box-shadow .17s ease;
}
.aw-lobby .aw-tab small { font-size: 12px; font-weight: 850; letter-spacing: .06em; opacity: .8; }
.aw-lobby .aw-tab strong { margin-top: 1px; font-size: 14px; font-weight: 950; }
.aw-lobby .aw-tab:hover { color: var(--lb-ink); background: rgba(255, 240, 255, .06); }
.aw-lobby .aw-tab.is-active { color: #22102e; background: linear-gradient(120deg, #ffddef, #ece0ff); box-shadow: inset 0 1px rgba(255, 255, 255, .8), 0 8px 20px rgba(255, 140, 205, .22); }
.aw-lobby .aw-tab.is-active small { opacity: .68; }
.aw-lobby .aw-tab { position: relative; }
.aw-lobby .aw-tab.has-alert { animation: aw-tab-glow 1.5s ease-in-out infinite; }
.aw-lobby .aw-tab-dot { position: absolute; top: 7px; right: 11px; width: 9px; height: 9px; border-radius: 50%; background: linear-gradient(140deg, #ffd76e, #ff7ac8); box-shadow: 0 0 10px rgba(255, 195, 125, .95); animation: aw-tab-dot 1.15s ease-in-out infinite; }

.aw-lobby .aw-workbench { width: min(1660px, 100%); min-height: 430px; margin: 0 auto; padding: clamp(20px, 2vw, 30px); }
.aw-lobby .aw-workbench-head { align-items: center; }
.aw-lobby .aw-workbench-head small { color: var(--lb-pink); letter-spacing: .18em; }
.aw-lobby .aw-workbench-head h2 { color: #fdf7ff; font-size: 21px; }
.aw-lobby .aw-workbench-head p { color: var(--lb-muted); font-size: 13px; }
.aw-lobby .aw-inventory-count { display: flex; min-width: 104px; min-height: 54px; flex-direction: column; align-items: center; justify-content: center; border-left: 1px solid var(--lb-line); }
.aw-lobby .aw-inventory-count span { color: var(--lb-muted); font-size: 12px; font-weight: 800; }
.aw-lobby .aw-inventory-count strong { color: var(--lb-butter); font-size: 23px; font-weight: 950; font-variant-numeric: tabular-nums; }

.aw-lobby .aw-inventory-toolbar { display: grid; grid-template-columns: repeat(auto-fit, minmax(136px, 1fr)); align-items: end; gap: 9px; margin-top: 15px; padding: 11px; border: 1px solid var(--lb-line-soft); border-radius: 14px; background: var(--lb-well); }
.aw-lobby .aw-inventory-toolbar label { display: grid; min-width: 0; gap: 6px; }
.aw-lobby .aw-inventory-toolbar label > span { color: var(--lb-muted); font-size: 12px; font-weight: 850; letter-spacing: .04em; }
.aw-lobby .aw-inventory-toolbar select { width: 100%; min-height: 42px; padding: 0 30px 0 12px; color: #f3ebff; border: 1px solid rgba(238, 216, 255, .16); border-radius: 10px; outline: none; background: #241540; font: 800 13px/1 var(--aw-font); }
.aw-lobby .aw-inventory-toolbar select:focus-visible { border-color: var(--lb-mint); box-shadow: 0 0 0 2px rgba(111, 232, 192, .14); }
.aw-lobby .aw-inventory-toolbar nav,
.aw-lobby .aw-chest-pager { display: flex; align-items: center; justify-content: center; gap: 8px; }
.aw-lobby .aw-inventory-toolbar nav button,
.aw-lobby .aw-chest-pager button { width: 38px; height: 38px; color: var(--lb-pink); border: 1px solid rgba(255, 170, 220, .3); border-radius: 10px; background: rgba(255, 122, 200, .07); font-size: 19px; cursor: pointer; }
.aw-lobby .aw-inventory-toolbar nav button:disabled,
.aw-lobby .aw-chest-pager button:disabled { color: #5d4f7d; border-color: rgba(238, 216, 255, .1); background: transparent; cursor: default; }
.aw-lobby .aw-inventory-toolbar nav strong,
.aw-lobby .aw-chest-pager strong { min-width: 58px; color: #efe5ff; font-size: 12px; font-weight: 900; text-align: center; font-variant-numeric: tabular-nums; }
.aw-lobby .aw-chest-pager { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--lb-line-soft); }

.aw-lobby .aw-inventory-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 372px); gap: 20px; margin-top: 18px; }
.aw-lobby .aw-item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); align-content: start; gap: 11px; }
:is(.aw-lobby, .aw-work-layer) .aw-item-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 168px;
  flex-direction: column;
  align-items: center;
  padding: 14px 8px 11px;
  overflow: hidden;
  border: 1px solid rgba(var(--rarity-rgb), .38);
  border-radius: 15px;
  color: var(--lb-ink);
  text-align: center;
  background: linear-gradient(175deg, rgba(50, 33, 78, .9), rgba(26, 16, 47, .95));
  box-shadow: inset 0 1px rgba(255, 255, 255, .06);
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
:is(.aw-lobby, .aw-work-layer) .aw-item-card::before { content: ""; position: absolute; left: 14%; right: 14%; top: 0; bottom: auto; width: auto; height: 2px; background: var(--rarity); box-shadow: 0 0 12px rgba(var(--rarity-rgb), .8); }
:is(.aw-lobby, .aw-work-layer) .aw-item-card:hover { z-index: 2; transform: translateY(-3px); border-color: rgba(var(--rarity-rgb), .8); box-shadow: inset 0 1px rgba(255, 255, 255, .09), 0 12px 26px rgba(8, 3, 20, .5), 0 0 18px rgba(var(--rarity-rgb), .2); }
:is(.aw-lobby, .aw-work-layer) .aw-item-card.is-selected { border-color: #ffd9ef; box-shadow: inset 0 0 0 1px rgba(255, 217, 239, .5), 0 0 0 3px rgba(255, 122, 200, .22), 0 12px 26px rgba(8, 3, 20, .5); }
:is(.aw-lobby, .aw-work-layer) .aw-item-art { position: relative; display: grid; place-items: center; width: 86px; height: 86px; }
:is(.aw-lobby, .aw-work-layer) .aw-item-art canvas { width: 82px; height: 82px; image-rendering: pixelated; }
:is(.aw-lobby, .aw-work-layer) .aw-rarity-flare { position: absolute; inset: 8px; z-index: 0; border-radius: 50%; background: var(--rarity); opacity: .16; filter: blur(15px); }
:is(.aw-lobby, .aw-work-layer) .aw-item-art canvas { position: relative; z-index: 1; }
:is(.aw-lobby, .aw-work-layer) .aw-item-stack { position: absolute; z-index: 2; right: -4px; bottom: 1px; display: grid; min-width: 30px; height: 22px; place-items: center; padding: 0 7px; color: #180a24; border: 1px solid rgba(255, 255, 255, .6); border-radius: 999px; background: var(--rarity); box-shadow: 0 4px 12px rgba(0, 0, 0, .45); font: 950 12px/1 var(--aw-font); }
:is(.aw-lobby, .aw-work-layer) .aw-item-copy { display: flex; min-width: 0; max-width: 100%; flex-direction: column; align-items: center; margin-top: 6px; }
:is(.aw-lobby, .aw-work-layer) .aw-item-copy strong { max-width: 100%; overflow: hidden; color: #fbf5ff; font-size: 13px; font-weight: 950; text-overflow: ellipsis; white-space: nowrap; }
:is(.aw-lobby, .aw-work-layer) .aw-item-copy small { margin-top: 3px; color: var(--rarity); font-size: 12px; font-weight: 900; letter-spacing: .03em; }
:is(.aw-lobby, .aw-work-layer) .aw-item-flags { position: absolute; z-index: 2; top: 7px; right: 8px; display: flex; gap: 4px; }
:is(.aw-lobby, .aw-work-layer) .aw-item-flags i { color: var(--lb-butter); font-size: 12px; font-style: normal; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); }

:is(.aw-lobby, .aw-work-layer) .aw-equip-flag {
  position: absolute;
  z-index: 3;
  top: -1px;
  left: -1px;
  padding: 5px 11px 6px;
  border-radius: 14px 3px 13px 3px;
  color: var(--lb-mint-deep);
  background: linear-gradient(120deg, #5fdfae, #97f2d3);
  box-shadow: 0 4px 12px rgba(64, 220, 170, .35);
  font-size: 12px;
  font-weight: 950;
  font-style: normal;
  line-height: 1;
}
:is(.aw-lobby, .aw-work-layer) .aw-item-card.is-equipped { border-color: rgba(111, 232, 192, .62); background: linear-gradient(175deg, rgba(36, 62, 58, .55), rgba(26, 16, 47, .95)) , linear-gradient(175deg, rgba(50, 33, 78, .9), rgba(26, 16, 47, .95)); box-shadow: inset 0 1px rgba(255, 255, 255, .07), 0 0 0 1px rgba(111, 232, 192, .28), 0 8px 22px rgba(64, 220, 170, .12); }
:is(.aw-lobby, .aw-work-layer) .aw-item-card.is-equipped::before { background: var(--lb-mint); box-shadow: 0 0 12px rgba(111, 232, 192, .8); }
:is(.aw-lobby, .aw-work-layer) .aw-item-card.is-equipped.is-selected { border-color: #ffd9ef; box-shadow: inset 0 0 0 1px rgba(255, 217, 239, .5), 0 0 0 3px rgba(255, 122, 200, .22), 0 12px 26px rgba(8, 3, 20, .5); }

:is(.aw-lobby, .aw-work-layer) .aw-item-card[data-aw-badge] { padding-bottom: 36px; }
:is(.aw-lobby, .aw-work-layer) .aw-item-card[data-aw-badge]::after { content: attr(data-aw-badge); position: absolute; z-index: 3; left: 50%; bottom: 8px; padding: 3px 10px 4px; border: 1px solid rgba(255, 214, 236, .4); border-radius: 999px; color: #ffdcef; background: rgba(24, 10, 38, .95); font-size: 12px; font-weight: 950; line-height: 1.2; white-space: nowrap; transform: translateX(-50%); }
:is(.aw-lobby, .aw-work-layer) .aw-item-card.is-target { border-color: var(--lb-butter); box-shadow: inset 0 0 0 1px rgba(255, 215, 110, .4), 0 0 0 3px rgba(255, 215, 110, .16), 0 0 20px rgba(255, 215, 110, .18); }
:is(.aw-lobby, .aw-work-layer) .aw-item-card.is-target[data-aw-badge]::after,
:is(.aw-lobby, .aw-work-layer) .aw-item-card.is-core[data-aw-badge]::after { border-color: rgba(255, 215, 110, .55); color: #ffe9ae; }
:is(.aw-lobby, .aw-work-layer) .aw-item-card.is-material,
:is(.aw-lobby, .aw-work-layer) .aw-item-card.is-extra { border-color: rgba(111, 232, 192, .65); background: linear-gradient(175deg, rgba(29, 66, 56, .82), rgba(20, 30, 40, .95)); }
:is(.aw-lobby, .aw-work-layer) .aw-item-card.is-material[data-aw-badge]::after,
:is(.aw-lobby, .aw-work-layer) .aw-item-card.is-extra[data-aw-badge]::after { border-color: rgba(111, 232, 192, .55); color: #b9f5de; }
:is(.aw-lobby, .aw-work-layer) .aw-item-card.is-core { border-color: var(--lb-butter); background: linear-gradient(175deg, rgba(74, 58, 24, .85), rgba(30, 20, 16, .95)); }
:is(.aw-lobby, .aw-work-layer) .aw-item-card.is-protected { opacity: .42; filter: saturate(.45); }
:is(.aw-lobby, .aw-work-layer) .aw-item-card.is-dim { opacity: .32; }

.aw-lobby .aw-item-detail { position: sticky; top: 64px; align-self: start; min-height: 330px; max-height: calc(100vh - 200px); overflow: auto; padding: 17px; border: 1px solid var(--lb-line); border-radius: 18px; background: rgba(21, 12, 39, .82); box-shadow: inset 0 1px rgba(255, 255, 255, .05); scrollbar-width: thin; }
.aw-lobby .aw-detail-hero { border-bottom: 1px solid var(--lb-line); }
.aw-lobby .aw-detail-hero h3 { color: #fdf7ff; }
:is(.aw-lobby, .aw-work-layer) .aw-effect-ledger,
:is(.aw-lobby, .aw-work-layer) .aw-material-ledger { border-color: var(--lb-line-soft); background: var(--lb-well); }
:is(.aw-lobby, .aw-work-layer) .aw-effect-ledger > div,
:is(.aw-lobby, .aw-work-layer) .aw-material-ledger > div { border-bottom-color: var(--lb-line-soft); }
:is(.aw-lobby, .aw-work-layer) .aw-effect-ledger span,
:is(.aw-lobby, .aw-work-layer) .aw-material-ledger span { color: var(--lb-muted); }
:is(.aw-lobby, .aw-work-layer) .aw-effect-ledger strong,
:is(.aw-lobby, .aw-work-layer) .aw-material-ledger b { color: #f1e8ff; }
:is(.aw-lobby, .aw-work-layer) .aw-effect-ledger .is-final,
:is(.aw-lobby, .aw-work-layer) .aw-material-ledger .is-result { border-color: rgba(111, 232, 192, .26); background: rgba(111, 232, 192, .06); }
:is(.aw-lobby, .aw-work-layer) .aw-effect-ledger .is-final strong,
:is(.aw-lobby, .aw-work-layer) .aw-material-ledger .is-result b { color: var(--lb-mint); }
:is(.aw-lobby, .aw-work-layer) .aw-equipped-compare { border-left-color: rgba(255, 122, 200, .6); background: rgba(255, 122, 200, .06); }
:is(.aw-lobby, .aw-work-layer) .aw-equipped-compare span { color: #ffb1d9; }
:is(.aw-lobby, .aw-work-layer) .aw-equipped-compare strong { color: #ffe4f2; }
:is(.aw-lobby, .aw-work-layer) .aw-xp > div:first-child strong { color: var(--lb-butter); }
:is(.aw-lobby, .aw-work-layer) .aw-xp-track { border-color: rgba(238, 216, 255, .14); background: rgba(10, 5, 22, .8); }
:is(.aw-lobby, .aw-work-layer) .aw-xp-track > i { background: linear-gradient(90deg, #4fd6a4, var(--lb-mint)); box-shadow: 0 0 14px rgba(111, 232, 192, .4); }
:is(.aw-lobby, .aw-work-layer) .aw-transcend-rank strong { color: #ffc79b; }

:is(.aw-lobby, .aw-work-layer) .aw-primary { border: 1px solid rgba(111, 232, 192, .6); color: var(--lb-mint-deep); background: linear-gradient(120deg, #74e9c1, #a5f2d8); box-shadow: inset 0 1px rgba(255, 255, 255, .55); font-weight: 950; }
:is(.aw-lobby, .aw-work-layer) .aw-primary:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.05) saturate(1.1); }
:is(.aw-lobby, .aw-work-layer) .aw-secondary { border: 1px solid rgba(238, 216, 255, .2); color: var(--lb-ink); background: rgba(45, 29, 72, .85); }
:is(.aw-lobby, .aw-work-layer) .aw-secondary:hover:not(:disabled),
:is(.aw-lobby, .aw-work-layer) .aw-secondary.is-on { border-color: rgba(255, 170, 220, .5); background: rgba(66, 38, 84, .9); }
:is(.aw-lobby, .aw-work-layer) .aw-text-btn { color: var(--lb-pink); }
:is(.aw-lobby, .aw-work-layer) .aw-text-btn:hover { background: rgba(255, 122, 200, .09); }
.aw-lobby .aw-replay-btn { border-color: rgba(168, 117, 255, .42); color: #d4bcff; background: rgba(96, 62, 158, .22); }

:is(.aw-lobby, .aw-work-layer) .aw-gear-count { border-bottom-color: var(--lb-line); }
:is(.aw-lobby, .aw-work-layer) .aw-gear-count span { color: var(--lb-mint); }
:is(.aw-lobby, .aw-work-layer) .aw-gear-count b { color: #f1e8ff; }
:is(.aw-lobby, .aw-work-layer) .aw-auto-material { min-height: 36px; padding: 0 13px; color: var(--lb-mint); border: 1px solid rgba(111, 232, 192, .3); border-radius: 999px; background: rgba(111, 232, 192, .07); font: 850 12px/1 var(--aw-font); cursor: pointer; }
:is(.aw-lobby, .aw-work-layer) .aw-auto-material:hover { background: rgba(111, 232, 192, .13); }
:is(.aw-lobby, .aw-work-layer) .aw-focus { border-color: var(--lb-line-soft); }
:is(.aw-lobby, .aw-work-layer) .aw-focus b { color: var(--lb-mint); }
:is(.aw-lobby, .aw-work-layer) .aw-synthesis-rules li::before { background: var(--lb-pink); }
:is(.aw-lobby, .aw-work-layer) .aw-material-contributions { border-color: rgba(255, 215, 110, .18); background: rgba(255, 215, 110, .045); }
:is(.aw-lobby, .aw-work-layer) .aw-selection-empty > span { color: var(--lb-mint); }
:is(.aw-lobby, .aw-work-layer) .aw-selection-empty > strong,
:is(.aw-lobby, .aw-work-layer) .aw-empty > strong { color: var(--lb-ink); }
:is(.aw-lobby, .aw-work-layer) .aw-selection-empty,
:is(.aw-lobby, .aw-work-layer) .aw-empty { color: var(--lb-muted); }

.aw-lobby .aw-chest-summary { margin-top: 16px; padding: 13px; border: 1px solid var(--lb-line-soft); border-radius: 16px; background: var(--lb-well); }
.aw-lobby .aw-chest-summary > header { border-bottom-color: var(--lb-line-soft); }
.aw-lobby .aw-chest-summary > header span { color: var(--lb-butter); }
.aw-lobby .aw-chest-summary > header strong { color: #f1e8ff; }
.aw-lobby .aw-chest-summary-card { border-color: rgba(var(--rarity-rgb), .3); background: radial-gradient(circle at 20% 50%, rgba(var(--rarity-rgb), .12), transparent 55%), rgba(30, 18, 52, .8); border-radius: 12px; }
.aw-lobby .aw-chest-summary-card strong { font-family: var(--aw-font); }
.aw-lobby .aw-chest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); gap: 14px; margin-top: 20px; }
.aw-lobby .aw-chest-card { border-radius: 18px; background: radial-gradient(circle at 50% 32%, rgba(var(--rarity-rgb), .13), transparent 46%), linear-gradient(175deg, rgba(44, 28, 70, .9), rgba(24, 15, 44, .95)); }
.aw-lobby .aw-chest-card::before { left: 14%; right: 14%; top: 0; bottom: auto; width: auto; height: 2px; }

.aw-lobby .aw-rank-preview { width: min(1660px, 100%); margin: clamp(16px, 1.6vw, 24px) auto 0; padding: 22px; }
.aw-lobby .aw-rank-row { border-bottom: 1px solid var(--lb-line-soft); }
.aw-lobby .aw-rank-row:hover { background: rgba(255, 122, 200, .045); }
.aw-lobby .aw-rank-row.is-me { border: 1px solid rgba(111, 232, 192, .34); background: linear-gradient(90deg, rgba(111, 232, 192, .1), rgba(111, 232, 192, .02)); }
.aw-lobby .aw-rank-num { color: #8a7bad; }
.aw-lobby .aw-rank-row:nth-child(1) .aw-rank-num { color: #ffe184; text-shadow: 0 0 12px rgba(255, 225, 132, .5); }
.aw-lobby .aw-rank-row:nth-child(2) .aw-rank-num { color: #e8e2f4; }
.aw-lobby .aw-rank-row:nth-child(3) .aw-rank-num { color: #ffb08a; }
.aw-lobby .aw-rank-player:hover { background: rgba(255, 240, 255, .06); }
.aw-lobby .aw-rank-floor strong { color: #fdf7ff; }
.aw-lobby .aw-rank-metrics { color: #b7a8d6; }
.aw-lobby .aw-my-rank { border-color: rgba(111, 232, 192, .3); background: rgba(111, 232, 192, .07); }
.aw-lobby .aw-my-rank > span { color: var(--lb-mint); }
.aw-lobby .aw-ranking-scroll { scrollbar-color: rgba(255, 140, 205, .4) rgba(14, 7, 27, .6); }
.aw-lobby .aw-ranking-more { border-color: var(--lb-line-soft); background: linear-gradient(90deg, transparent, rgba(255, 122, 200, .05), transparent); }

@keyframes aw-orb-turn { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes aw-candy-shine { 0%, 58% { left: -46%; } 88%, 100% { left: 128%; } }

@media (max-width: 1440px) {
  .aw-lobby .aw-command-deck { grid-template-columns: minmax(250px, .95fr) minmax(310px, 1.08fr) minmax(280px, 1fr); }
  .aw-lobby .aw-hero-stage { min-height: 320px; }
  .aw-lobby .aw-loadout-grid { gap: 10px; }
  .aw-lobby .aw-slot-card { min-height: 138px; }
  .aw-lobby .aw-slot-card canvas { width: 66px; height: 66px; }
  .aw-lobby .aw-item-grid { grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); }
}

@media (max-width: 1180px) {
  .aw-lobby .aw-command-deck { grid-template-columns: 1fr 1fr; }
  .aw-lobby .aw-hero-stage { min-height: 300px; }
  .aw-lobby .aw-launch-panel { grid-column: 1 / -1; }
  .aw-lobby .aw-loadout-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .aw-lobby .aw-inventory-layout { grid-template-columns: 1fr; }
  .aw-lobby .aw-item-detail { position: static; max-height: none; overflow: visible; }
  .aw-lobby .aw-tab { min-width: 112px; }
}

@media (max-width: 760px) {
  .aw-lobby .aw-lobby-scroll { height: calc(100% - 66px); padding: 14px 12px 64px; }
  .aw-lobby .aw-command-deck { grid-template-columns: 1fr; }
  .aw-lobby .aw-hero-stage { min-height: 240px; }
  .aw-lobby .aw-pb > strong { font-size: 50px; }
  .aw-lobby .aw-start-btn { min-height: 84px; }
  .aw-lobby .aw-loadout-panel { padding: 14px 14px 16px; }
  .aw-lobby .aw-loadout-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .aw-lobby .aw-slot-card { min-height: 122px; }
  .aw-lobby .aw-slot-card canvas { width: 58px; height: 58px; }
  .aw-lobby .aw-tabs { width: 100%; top: -15px; }
  .aw-lobby .aw-tab { min-width: 0; flex: 1; padding-inline: 8px; }
  .aw-lobby .aw-tab small { display: none; }
  .aw-lobby .aw-workbench { padding: 16px 13px; }
  .aw-lobby .aw-inventory-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aw-lobby .aw-inventory-toolbar nav { grid-column: span 2; }
  .aw-lobby .aw-item-grid { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 8px; }
  .aw-lobby .aw-chest-grid { grid-template-columns: repeat(2, 1fr); }
  .aw-lobby .aw-chest-summary > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aw-lobby .aw-rank-row { grid-template-columns: 36px minmax(110px, 1fr) 90px; padding-inline: 6px; }
  .aw-lobby .aw-rank-metrics,
  .aw-lobby .aw-rank-row .aw-replay-btn { display: none; }
  .aw-lobby .aw-my-rank { grid-template-columns: 76px 1fr; }
  .aw-lobby .aw-my-rank small { display: none; }
}

@media (max-width: 480px) {
  .aw-lobby .aw-loadout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aw-lobby .aw-workbench,
  .aw-lobby .aw-rank-preview,
  .aw-lobby .aw-loadout-panel { border-radius: 16px; }
  .aw-lobby .aw-item-detail { padding: 12px; }
  .aw-lobby .aw-detail-hero { grid-template-columns: 100px 1fr; }
  .aw-lobby .aw-detail-hero canvas { width: 96px; height: 96px; }
  .aw-lobby .aw-inventory-toolbar { grid-template-columns: 1fr; }
  .aw-lobby .aw-inventory-toolbar nav { grid-column: auto; }
  .aw-lobby .aw-chest-grid { grid-template-columns: 1fr; }
  .aw-lobby .aw-chest-summary > div { grid-template-columns: 1fr; }
}

.aw-lobby .aw-pick-note { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; margin-top: 15px; padding: 12px 16px; border: 1px solid rgba(111, 232, 192, .22); border-radius: 14px; background: rgba(111, 232, 192, .06); }
.aw-lobby .aw-pick-note strong { color: var(--lb-mint); font-size: 14px; font-weight: 950; }
.aw-lobby .aw-pick-note span { color: var(--lb-muted); font-size: 12px; line-height: 1.5; }
.aw-lobby .aw-pick-grid { margin-top: 16px; }
.aw-lobby .aw-pick-grid .aw-item-card.is-dim { cursor: default; }

.aw-work-layer {
  --lb-ink: #f8f2ff;
  --lb-muted: #ab9cc8;
  --lb-line: rgba(238, 216, 255, .11);
  --lb-line-soft: rgba(238, 216, 255, .07);
  --lb-card: linear-gradient(168deg, rgba(44, 28, 70, .93), rgba(25, 15, 44, .96));
  --lb-well: rgba(15, 8, 30, .55);
  --lb-mint: #6fe8c0;
  --lb-mint-deep: #0d2b20;
  --lb-pink: #ff7ac8;
  --lb-peach: #ffb46b;
  --lb-butter: #ffd76e;
  --lb-sky: #8fd7ff;
  padding: clamp(12px, 2.4vh, 30px) clamp(12px, 2.4vw, 34px);
  color: var(--lb-ink);
  color-scheme: dark;
  background: rgba(10, 5, 20, .78);
  font-family: var(--aw-font);
}
.aw-work-layer,
.aw-work-layer * { box-sizing: border-box; }
.aw-work-layer button:focus-visible { outline: 2px solid var(--lb-mint); outline-offset: 3px; }
.aw-work-modal {
  display: flex;
  width: min(1340px, 100%);
  height: min(880px, 100%);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(238, 216, 255, .18);
  border-radius: 24px;
  background:
    radial-gradient(900px 380px at 14% -6%, rgba(255, 122, 200, .13), transparent 60%),
    radial-gradient(760px 420px at 92% 0%, rgba(111, 232, 192, .1), transparent 55%),
    linear-gradient(168deg, #2b1a48 0%, #1b1032 56%, #130a26 100%);
  box-shadow: inset 0 1px rgba(255, 255, 255, .07), 0 48px 130px rgba(0, 0, 0, .66);
  animation: aw-work-pop .24s cubic-bezier(.2, .9, .25, 1.15) both;
}
.aw-work-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px 15px; border-bottom: 1px solid var(--lb-line); background: rgba(20, 11, 38, .55); }
.aw-work-head small { color: var(--lb-mint); font-size: 12px; font-weight: 900; letter-spacing: .18em; }
.aw-work-head h2 { margin: 3px 0 0; color: #fdf7ff; font-size: 22px; font-weight: 950; line-height: 1.1; }
.aw-work-x { display: grid; width: 42px; height: 42px; flex: none; place-items: center; padding: 0; border: 1px solid rgba(238, 216, 255, .22); border-radius: 12px; color: #f3ebff; background: rgba(45, 29, 72, .85); font-size: 20px; font-weight: 900; line-height: 1; cursor: pointer; transition: border-color .16s ease, background .16s ease; }
.aw-work-x:hover { border-color: rgba(255, 170, 220, .5); background: rgba(66, 38, 84, .92); }
.aw-work-body { display: grid; flex: 1; grid-template-columns: minmax(300px, 384px) minmax(0, 1fr); min-height: 0; }
.aw-work-target { display: flex; flex-direction: column; min-height: 0; padding: 16px 20px 18px; overflow: auto; border-right: 1px solid var(--lb-line); background: var(--lb-well); scrollbar-width: thin; }
.aw-work-hero { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid rgba(var(--rarity-rgb), .55); border-radius: 16px; background: radial-gradient(circle at 16% 50%, rgba(var(--rarity-rgb), .2), transparent 62%), rgba(30, 18, 52, .85); box-shadow: inset 0 1px rgba(255, 255, 255, .07), 0 0 22px rgba(var(--rarity-rgb), .14); }
.aw-work-hero-art { position: relative; display: grid; width: 108px; height: 108px; place-items: center; }
.aw-work-hero-art::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--rarity); opacity: .2; filter: blur(16px); }
.aw-work-hero canvas { position: relative; width: 102px; height: 102px; image-rendering: pixelated; }
.aw-work-hero small { display: block; color: var(--rarity); font-size: 12px; font-weight: 900; letter-spacing: .05em; }
.aw-work-hero h3 { margin: 3px 0 0; color: #fdf7ff; font-size: 19px; font-weight: 950; line-height: 1.15; }
.aw-work-hero strong { display: block; margin-top: 6px; color: #ffe9b8; font-size: 13px; font-weight: 900; line-height: 1.4; }
.aw-work-level { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin-top: 12px; padding: 11px 14px; border: 1px solid rgba(255, 215, 110, .3); border-radius: 13px; background: rgba(255, 215, 110, .07); }
.aw-work-level > span { color: var(--lb-butter); font-size: 12px; font-weight: 900; letter-spacing: .07em; }
.aw-work-level > strong { display: flex; align-items: baseline; gap: 8px; color: #f6edff; font-size: 21px; font-weight: 950; font-variant-numeric: tabular-nums; }
.aw-work-level > strong i { color: var(--lb-muted); font-size: 15px; font-style: normal; }
.aw-work-level > strong b { color: var(--lb-mint); text-shadow: 0 0 18px rgba(111, 232, 192, .45); }
.aw-work-level > em { width: 100%; color: var(--lb-muted); font-size: 12px; font-style: normal; font-weight: 800; text-align: right; }
.aw-work-chance { display: flex; flex-direction: column; align-items: center; margin-top: 14px; }
.aw-work-chance strong { color: #fff; font-size: 38px; font-weight: 950; line-height: 1; text-shadow: 0 0 26px rgba(255, 122, 200, .4); }
.aw-work-chance span { margin-top: 5px; color: var(--lb-muted); font-size: 12px; font-weight: 800; }
.aw-work-layer .aw-synth-rarity { justify-content: center; }
.aw-work-mats { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.aw-work-mats-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px 10px; }
.aw-work-mats-head small { display: block; color: var(--lb-pink); font-size: 12px; font-weight: 900; letter-spacing: .16em; }
.aw-work-mats-head b { display: block; margin-top: 2px; color: #fdf7ff; font-size: 16px; font-weight: 950; }
.aw-work-warning { margin: 0 20px 10px; padding: 9px 13px; border: 1px solid rgba(255, 180, 107, .38); border-radius: 11px; color: #ffd9ad; background: rgba(255, 180, 107, .09); font-size: 12px; font-weight: 800; line-height: 1.55; }
.aw-work-grid { display: grid; flex: 1; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); align-content: start; gap: 10px; min-height: 0; padding: 4px 20px 18px; overflow: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 140, 205, .4) rgba(14, 7, 27, .6); }
.aw-work-layer .aw-item-card.is-material { box-shadow: inset 0 0 0 2px rgba(111, 232, 192, .75), 0 0 0 3px rgba(111, 232, 192, .28), 0 10px 24px rgba(8, 3, 20, .5); }
.aw-work-layer .aw-item-card.is-material::after { border-width: 2px; }
.aw-work-layer .aw-item-card.is-material .aw-item-art::after,
.aw-work-layer .aw-item-card.is-core .aw-item-art::after,
.aw-work-layer .aw-item-card.is-extra .aw-item-art::after { content: "✓"; position: absolute; z-index: 3; right: -3px; top: -3px; display: grid; width: 26px; height: 26px; place-items: center; border: 2px solid rgba(255, 255, 255, .75); border-radius: 50%; color: #0d2b20; background: linear-gradient(140deg, #74e9c1, #a5f2d8); box-shadow: 0 4px 12px rgba(64, 220, 170, .5); font-size: 14px; font-weight: 950; }
.aw-work-layer .aw-item-card.is-core .aw-item-art::after { color: #4a3208; background: linear-gradient(140deg, #ffd76e, #ffe9ae); box-shadow: 0 4px 12px rgba(255, 205, 110, .5); }
.aw-work-layer .aw-item-card.is-core { box-shadow: inset 0 0 0 2px rgba(255, 215, 110, .8), 0 0 0 3px rgba(255, 215, 110, .26), 0 10px 24px rgba(8, 3, 20, .5); }
.aw-work-layer .aw-item-card.is-extra { box-shadow: inset 0 0 0 2px rgba(111, 232, 192, .55), 0 0 0 3px rgba(111, 232, 192, .2), 0 10px 24px rgba(8, 3, 20, .5); }
.aw-work-layer .aw-item-card.is-protected { opacity: .38; filter: saturate(.4) brightness(.85); cursor: not-allowed; }
.aw-work-layer .aw-item-card.is-dim { opacity: .28; filter: saturate(.35); cursor: not-allowed; }
.aw-work-foot { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--lb-line); background: rgba(15, 8, 30, .72); }
.aw-work-summary { flex: 1; min-width: 0; overflow: hidden; color: #d9c9f2; font-size: 13px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.aw-work-foot .aw-secondary { min-width: 128px; min-height: 50px; border-radius: 13px; font-size: 14px; }
.aw-work-foot .aw-primary { min-width: 232px; min-height: 50px; border-radius: 13px; font-size: 15px; letter-spacing: .02em; }
.aw-work-layer .aw-material-ledger { margin: 12px 0 0; }
.aw-work-layer .aw-synthesis-rules { margin-bottom: 0; }
.aw-work-layer .aw-gear-count { margin-bottom: 10px; }

.aw-work-notice { margin: 16px 22px 4px; padding: 13px 17px; border: 1px solid rgba(255, 215, 110, .38); border-radius: 13px; color: #ffe9b8; background: rgba(255, 215, 110, .09); font-size: 14px; font-weight: 900; line-height: 1.5; }
.aw-work-choose-grid { padding: 14px 22px 18px; }
.aw-work-choose .aw-work-foot { border-top: 1px solid var(--lb-line); }
.aw-work-retarget { align-self: flex-start; margin-top: 8px; min-height: 32px; }

@keyframes aw-work-pop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes aw-tab-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 205, 120, 0); }
  50% { box-shadow: 0 0 0 3px rgba(255, 205, 120, .28), 0 0 20px rgba(255, 170, 110, .5); }
}
@keyframes aw-tab-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.45); opacity: .75; }
}

@media (max-width: 1180px) {
  .aw-work-body { grid-template-columns: minmax(264px, 320px) minmax(0, 1fr); }
  .aw-work-grid { grid-template-columns: repeat(auto-fill, minmax(122px, 1fr)); }
}

@media (max-width: 760px) {
  .aw-work-layer { padding: 0; }
  .aw-work-modal { width: 100%; height: 100%; border-radius: 0; }
  .aw-work-body { grid-template-columns: 1fr; grid-template-rows: minmax(0, 42%) minmax(0, 1fr); }
  .aw-work-target { border-right: 0; border-bottom: 1px solid var(--lb-line); }
  .aw-work-foot { flex-wrap: wrap; }
  .aw-work-summary { flex-basis: 100%; }
  .aw-work-foot .aw-secondary,
  .aw-work-foot .aw-primary { flex: 1; min-width: 0; }
}

/* Battle --------------------------------------------------------------- */
.aw-battle { transition: background-color 2s ease; }
.aw-battle[data-aw-enraged="1"] { background: radial-gradient(circle at 26% 45%, rgba(255, 62, 88, .16), transparent 38%), linear-gradient(180deg, #130811, #07050b 70%); }
.aw-battle-ribbon { position: relative; z-index: 12; display: grid; grid-template-columns: 1fr minmax(240px, auto) 1fr; align-items: center; min-height: 62px; padding: 7px clamp(20px, 4vw, 70px); border-bottom: 1px solid rgba(99, 230, 255, .17); background: rgba(7, 12, 22, .84); }
.aw-battle-ribbon > div:not(.aw-ribbon-title) { display: flex; align-items: baseline; gap: 9px; min-width: 0; overflow: hidden; }
.aw-battle-ribbon > div:last-child { justify-content: flex-end; }
.aw-battle-ribbon span { color: var(--aw-muted); font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.aw-battle-ribbon strong { color: #fff; font-size: 20px; font-weight: 950; font-variant-numeric: tabular-nums; }
.aw-ribbon-title { text-align: center; }
.aw-ribbon-title small { display: block; color: var(--aw-aether); font-size: 12px; font-weight: 900; letter-spacing: .13em; }
.aw-ribbon-title strong { display: block; margin-top: 2px; font-size: 16px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.aw-battle-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(310px, 1fr) minmax(590px, auto) minmax(290px, .82fr);
  align-items: center;
  gap: clamp(12px, 1.25vw, 24px);
  width: min(1860px, 100%);
  height: calc(100% - 128px);
  min-height: 0;
  margin: 0 auto;
  padding: 13px clamp(13px, 1.5vw, 28px) 18px;
}

.aw-boss-panel,
.aw-combat-panel { align-self: stretch; min-height: 0; }
.aw-boss-panel { display: grid; grid-template-rows: minmax(250px, 1fr) auto auto; gap: 12px; }
.aw-boss-stage { position: relative; min-height: 260px; overflow: hidden; border: 1px solid rgba(99, 230, 255, .18); border-radius: 16px; background: var(--aw-void); box-shadow: inset 0 0 50px rgba(0, 0, 0, .42); }
.aw-boss-stage::before { content: ""; position: absolute; z-index: 4; inset: 10px; pointer-events: none; border: 1px solid rgba(99, 230, 255, .08); border-radius: 10px; }
.aw-enrage-wash { position: absolute; z-index: 5; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(circle, transparent 28%, rgba(255, 25, 55, .2)); transition: opacity 2s ease; }
.aw-battle[data-aw-enraged="1"] .aw-enrage-wash { opacity: 1; animation: aw-rage-wash 1s ease-in-out infinite; }

.aw-hp-conduit { position: relative; padding: 13px 15px 12px; border: 1px solid rgba(128, 153, 186, .24); border-radius: 12px; background: rgba(9, 14, 25, .97); }
.aw-hp-conduit::after { content: ""; position: absolute; right: -28px; top: 50%; width: 28px; height: 2px; background: linear-gradient(90deg, var(--aw-enrage), rgba(255, 62, 88, .12)); box-shadow: 0 0 10px rgba(255, 62, 88, .45); }
.aw-hp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.aw-hp-head span { color: #ff8798; font-size: 12px; font-weight: 900; }
.aw-hp-head strong { color: #ffe7eb; font-size: 13px; font-weight: 900; font-variant-numeric: tabular-nums; }
.aw-hp-track { position: relative; height: 15px; margin-top: 8px; overflow: hidden; border: 1px solid rgba(255, 91, 112, .27); border-radius: 3px; background: #18070c; }
.aw-hp-track > i { display: block; height: 100%; background: linear-gradient(90deg, #ad1730, var(--aw-enrage), #ff8697); box-shadow: 0 0 13px rgba(255, 62, 88, .4); transition: width .2s ease; }
.aw-hp-track > b { position: absolute; inset: 0; opacity: .25; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgba(7, 10, 18, .9) calc(10% - 1px) 10%); }
.aw-hp-conduit > small { display: block; margin-top: 7px; color: var(--aw-muted); font-size: 12px; text-align: right; }
.aw-threat { padding: 13px 15px; border: 1px solid rgba(128, 153, 186, .22); border-radius: 12px; background: rgba(9, 14, 25, .96); }
.aw-threat > div:not(.aw-threat-track) { display: flex; align-items: center; justify-content: space-between; }
.aw-threat span { color: var(--aw-muted); font-size: 12px; font-weight: 750; }
.aw-threat strong { color: #f4f8fc; font-size: 13px; font-weight: 900; font-variant-numeric: tabular-nums; }
.aw-threat-track { height: 5px; margin: 9px 0; overflow: hidden; border-radius: 999px; background: rgba(72, 83, 102, .3); }
.aw-threat-track i { display: block; height: 100%; background: linear-gradient(90deg, #d98729, var(--aw-enrage)); transition: width .16s linear; }

.aw-field-column { position: relative; display: flex; height: 100%; min-height: 0; flex-direction: column; align-items: center; justify-content: center; }
.aw-field-host { position: relative; z-index: 2; width: 100%; min-height: 0; isolation: isolate; }
.aw-field-host .tetra-wrap { max-width: 100%; padding: 12px; gap: 10px; border-color: rgba(99, 230, 255, .24); background: linear-gradient(180deg, rgba(5, 9, 18, .94), rgba(3, 6, 12, .98)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025), 0 20px 55px rgba(0, 0, 0, .38); }
.aw-field-host .tetra-wrap::before { background: radial-gradient(70% 65% at 50% 46%, rgba(18, 40, 60, .14), rgba(2, 5, 10, .64)); }
.aw-field-host .tetra-side { width: 116px; }
.aw-field-host .tetra-label { color: #9bb0c7; }
.aw-field-host .tetra-toolbar { justify-content: center; }
.aw-equipped-rail { display: flex; width: 100%; align-items: center; justify-content: center; gap: 10px; margin-top: 9px; }
.aw-equipped-rail > span { color: var(--aw-muted); font-size: 12px; font-weight: 900; white-space: nowrap; }
.aw-equipped-rail > div { display: flex; gap: 5px; }
.aw-battle-item { position: relative; display: grid; width: 46px; height: 46px; place-items: center; overflow: hidden; border: 1px solid rgba(var(--rarity-rgb), .36); border-radius: 8px; background: rgba(8, 13, 23, .92); }
.aw-battle-item canvas { width: 43px; height: 43px; image-rendering: pixelated; }
.aw-battle-item > span { position: absolute; right: 2px; bottom: 2px; min-width: 20px; padding: 2px 4px; border: 1px solid rgba(243, 201, 107, .28); border-radius: 999px; color: #ffe6a7; font-size: 12px; font-weight: 950; line-height: 1; text-align: center; background: rgba(4, 7, 13, .88); box-shadow: 0 2px 8px rgba(0, 0, 0, .42); text-shadow: 0 1px 3px #000; }
.aw-battle-item.is-empty { border-style: dashed; border-color: rgba(128, 153, 186, .16); }
.aw-battle-item.is-empty i { width: 8px; height: 8px; border: 1px solid #526277; transform: rotate(45deg); }

.aw-combat-panel { display: flex; flex-direction: column; gap: 11px; padding: 16px; overflow: auto; border: 1px solid rgba(128, 153, 186, .19); border-radius: 16px; background: linear-gradient(160deg, rgba(15, 23, 39, .94), rgba(8, 13, 24, .93)); scrollbar-width: thin; }
.aw-combat-state { display: flex; align-items: center; justify-content: space-between; padding-bottom: 11px; border-bottom: 1px solid var(--aw-line); }
.aw-combat-state > small { color: var(--aw-aether); font-size: 12px; font-weight: 900; letter-spacing: .13em; }
.aw-live-dot { display: flex; align-items: center; gap: 6px; color: var(--aw-muted); font-size: 12px; font-weight: 750; }
.aw-live-dot i { width: 7px; height: 7px; border-radius: 50%; background: #58e5a1; box-shadow: 0 0 9px rgba(88, 229, 161, .6); }
.aw-live-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.aw-live-metrics > div { display: flex; min-height: 58px; flex-direction: column; justify-content: center; padding: 9px 11px; border: 1px solid rgba(128, 153, 186, .14); border-radius: 9px; background: rgba(5, 9, 17, .54); }
.aw-live-metrics span { color: var(--aw-muted); font-size: 12px; font-weight: 850; letter-spacing: .06em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aw-live-metrics strong { margin-top: 4px; color: #f4f9ff; font-size: 20px; font-weight: 950; font-variant-numeric: tabular-nums; }
.aw-derived-compact { flex: none; margin: 0; }
.aw-derived-compact .aw-derived-row { min-height: 34px; padding: 6px 2px; }
.aw-derived-compact .aw-derived-row span { font-size: 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aw-derived-compact .aw-derived-row strong { font-size: 12px; }
.aw-incoming-card { padding: 12px; border: 1px solid rgba(255, 109, 128, .18); border-radius: 10px; background: rgba(68, 16, 27, .12); }
.aw-incoming-card span { color: #ff9baa; font-size: 12px; font-weight: 900; letter-spacing: .07em; }
.aw-incoming-card strong { display: block; margin-top: 6px; color: #f7eaed; font-size: 13px; line-height: 1.45; }
.aw-incoming-card small { display: block; margin-top: 6px; color: var(--aw-muted); font-size: 12px; }
.aw-run-loot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--aw-line); }
.aw-run-loot > div:first-child { display: flex; justify-content: space-between; color: var(--aw-muted); font-size: 12px; }
.aw-run-loot > div:first-child strong { color: var(--aw-gold); }
#aw-run-loot-list { display: flex; min-height: 26px; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
#aw-run-loot-list i { width: 18px; height: 18px; border: 1px solid rgba(var(--rarity-rgb), .65); background: radial-gradient(circle, rgba(var(--rarity-rgb), .8), rgba(var(--rarity-rgb), .15)); box-shadow: 0 0 9px rgba(var(--rarity-rgb), .24); transform: rotate(45deg) scale(.72); }

.aw-combat-toast { position: fixed; z-index: 80; left: 50%; top: 145px; min-width: 230px; padding: 10px 20px; pointer-events: none; border: 1px solid rgba(99, 230, 255, .42); border-radius: 999px; color: #ecfdff; text-align: center; background: rgba(7, 17, 28, .92); box-shadow: 0 12px 35px rgba(0, 0, 0, .3); opacity: 0; transform: translate(-50%, -10px); transition: opacity .16s ease, transform .16s ease; }
.aw-combat-toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.aw-combat-toast.type-critical { border-color: rgba(243, 201, 107, .7); color: #fff0b7; }
.aw-combat-toast.type-kill { border-color: rgba(168, 117, 255, .7); color: #decaff; }
.aw-combat-toast.type-enrage { border-color: rgba(255, 62, 88, .74); color: #ffd9df; background: rgba(65, 8, 20, .94); }

.aw-connection { position: fixed; z-index: 300; inset: 0; display: grid; place-items: center; background: rgba(3, 5, 11, .82); backdrop-filter: blur(9px); }
.aw-connection[hidden] { display: none; }
.aw-connection > div { display: flex; width: min(440px, calc(100% - 32px)); min-height: 250px; flex-direction: column; align-items: center; justify-content: center; padding: 30px; border: 1px solid rgba(99, 230, 255, .4); border-radius: 18px; text-align: center; background: #0d1524; box-shadow: 0 28px 90px rgba(0, 0, 0, .5); }
.aw-connection i { width: 44px; height: 44px; border: 3px solid rgba(99, 230, 255, .2); border-top-color: var(--aw-aether); border-radius: 50%; animation: aw-spin .8s linear infinite; }
.aw-connection strong { margin-top: 18px; font-size: 21px; }
.aw-connection span { max-width: 330px; margin-top: 8px; color: var(--aw-muted); font-size: 13px; line-height: 1.5; }
.aw-connection b { margin-top: 15px; color: var(--aw-aether); font-size: 32px; font-variant-numeric: tabular-nums; }
.aw-save-sync { position: fixed; z-index: 214; right: 18px; bottom: 18px; display: flex; align-items: center; gap: 9px; max-width: min(360px, calc(100vw - 36px)); padding: 10px 14px; border: 1px solid rgba(99, 230, 255, .28); border-radius: 12px; color: #dffaff; background: rgba(8, 17, 31, .92); box-shadow: 0 14px 42px rgba(0, 0, 0, .38); backdrop-filter: blur(10px); font-size: 12px; font-weight: 750; letter-spacing: .02em; }
.aw-save-sync[hidden] { display: none; }
.aw-save-sync i { width: 12px; height: 12px; flex: 0 0 auto; border: 2px solid rgba(99, 230, 255, .2); border-top-color: var(--aw-aether); border-radius: 50%; animation: aw-spin .75s linear infinite; }
.aw-save-sync.is-paused { border-color: rgba(255, 193, 92, .42); color: #ffe9b2; }
.aw-save-sync.is-paused i { border-color: rgba(255, 193, 92, .2); border-top-color: #ffc15c; }

/* Modal, results, and reveals ------------------------------------------ */
.aw-modal-layer { position: fixed; z-index: 140700; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(2, 4, 9, .84); backdrop-filter: blur(10px); }
.aw-confirm { width: min(460px, 100%); padding: 28px; border: 1px solid rgba(99, 230, 255, .38); border-radius: 17px; background: linear-gradient(155deg, #131f32, #0a101d); box-shadow: 0 32px 100px rgba(0, 0, 0, .58); }
.aw-confirm > small { color: var(--aw-aether); font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.aw-confirm h2 { margin: 8px 0 0; font-size: 22px; }
.aw-confirm p { margin: 12px 0 0; color: var(--aw-muted); font-size: 14px; line-height: 1.65; white-space: pre-line; }
.aw-confirm > div { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 24px; }
.aw-confirm.aw-fatal { border-color: rgba(255, 62, 88, .48); }
.aw-confirm.aw-fatal > small { color: #ff8798; }
.aw-confirm.aw-fatal > div { grid-template-columns: 1fr; }

.aw-result-layer { background: radial-gradient(circle at center, rgba(var(--rarity-rgb), .12), rgba(2, 4, 9, .9)); }
.aw-synthesis-result { position: relative; display: flex; width: min(510px, 100%); min-height: 540px; flex-direction: column; align-items: center; justify-content: center; padding: 32px; overflow: hidden; border: 1px solid rgba(var(--rarity-rgb), .58); border-radius: 20px; text-align: center; background: radial-gradient(circle at 50% 38%, rgba(var(--rarity-rgb), .16), transparent 39%), #0b111d; box-shadow: 0 0 70px rgba(var(--rarity-rgb), .15), 0 35px 110px rgba(0, 0, 0, .62); }
.aw-synthesis-result canvas { position: relative; z-index: 2; width: 210px; height: 210px; image-rendering: pixelated; animation: aw-reveal-item .75s cubic-bezier(.2, .9, .2, 1) both; }
.aw-synthesis-result > small { z-index: 2; color: var(--rarity); font-size: 12px; font-weight: 900; letter-spacing: .13em; }
.aw-synthesis-result h2 { z-index: 2; margin: 8px 0 0; font-size: 27px; }
.aw-synthesis-result p { z-index: 2; max-width: 390px; margin: 9px 0 0; color: var(--aw-muted); font-size: 13px; line-height: 1.5; }
.aw-synthesis-result > button { z-index: 2; width: 190px; margin-top: 22px; }

.aw-loot-reveal { overflow: auto; align-items: center; background: radial-gradient(circle at 50% 30%, rgba(99, 230, 255, .08), rgba(2, 4, 9, .94)); }
.aw-loot-reveal > section { width: min(1180px, 100%); max-height: 92vh; padding: 28px; overflow: auto; border: 1px solid rgba(99, 230, 255, .28); border-radius: 20px; background: rgba(9, 15, 27, .98); }
.aw-reveal-head { text-align: center; }
.aw-reveal-head small { color: var(--aw-gold); font-size: 12px; font-weight: 900; letter-spacing: .14em; }
.aw-reveal-head h2 { margin: 7px 0 0; font-size: 26px; }
.aw-reveal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-top: 23px; }
.aw-reveal-grid article { display: flex; min-height: 280px; flex-direction: column; align-items: center; padding: 12px; border: 1px solid rgba(var(--rarity-rgb), .55); border-radius: 14px; background: radial-gradient(circle at 50% 34%, rgba(var(--rarity-rgb), .16), transparent 48%), linear-gradient(168deg, #141d2f, #0a101d 76%); box-shadow: inset 0 1px rgba(255, 255, 255, .05), 0 0 18px rgba(var(--rarity-rgb), .14), 0 14px 34px rgba(0, 0, 0, .4); animation: aw-reveal-card .5s cubic-bezier(.18, .9, .24, 1.08) both; animation-delay: min(calc(var(--aw-reveal-index, 0) * 60ms), 1400ms); }
.aw-reveal-grid article > div { position: relative; width: 180px; height: 180px; }
.aw-reveal-count { position: absolute; right: 6px; bottom: 8px; padding: 3px 10px; border: 1px solid rgba(var(--rarity-rgb), .55); border-radius: 999px; background: rgba(8, 12, 22, .92); color: rgb(var(--rarity-rgb)); font-size: 13px; font-weight: 950; font-style: normal; box-shadow: 0 0 12px rgba(var(--rarity-rgb), .3); z-index: 2; }
.aw-reveal-grid canvas { width: 180px; height: 180px; image-rendering: pixelated; }
.aw-reveal-grid article > small { padding: 3px 10px; border: 1px solid rgba(var(--rarity-rgb), .34); border-radius: 999px; color: var(--rarity); background: rgba(4, 8, 15, .92); font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.aw-reveal-grid article > strong { margin-top: 7px; color: #f3f8fe; font-size: 16px; font-weight: 950; }
.aw-reveal-grid article > span { margin-top: 5px; padding: 3px 9px; border-radius: 7px; color: #c3d2e2; background: rgba(4, 8, 15, .85); font-size: 12px; font-weight: 750; text-align: center; }
.aw-loot-reveal > section > button { display: block; width: min(260px, 100%); margin: 22px auto 0; }

.aw-chest-opening {
  position: relative;
  display: flex;
  width: min(540px, 100%);
  min-height: min(680px, 92vh);
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 28px;
  overflow: hidden;
  border: 1px solid rgba(var(--rarity-rgb), .5);
  border-radius: 22px;
  background:
    linear-gradient(rgba(var(--rarity-rgb), .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--rarity-rgb), .035) 1px, transparent 1px),
    radial-gradient(circle at 50% 48%, rgba(var(--rarity-rgb), .16), transparent 38%),
    linear-gradient(155deg, #101827, #070b13 72%);
  background-size: 18px 18px, 18px 18px, auto, auto;
  box-shadow: 0 0 72px rgba(var(--rarity-rgb), .13), 0 36px 120px rgba(0, 0, 0, .66);
}
.aw-chest-opening::before,
.aw-chest-opening::after { content: ""; position: absolute; pointer-events: none; }
.aw-chest-opening::before { inset: 11px; border: 1px solid rgba(var(--rarity-rgb), .12); border-radius: 15px; }
.aw-chest-opening::after { left: 15%; right: 15%; bottom: 110px; height: 1px; opacity: .55; background: linear-gradient(90deg, transparent, var(--rarity), transparent); box-shadow: 0 0 20px rgba(var(--rarity-rgb), .6); }
.aw-chest-sequence { position: relative; z-index: 3; display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 0 4px 15px; border-bottom: 1px solid rgba(var(--rarity-rgb), .14); }
.aw-chest-sequence span { color: var(--rarity); font-size: 12px; font-weight: 950; letter-spacing: .13em; }
.aw-chest-sequence strong { color: #eef7ff; font-size: 12px; font-weight: 900; font-variant-numeric: tabular-nums; }
.aw-chest-opening-stage { position: relative; z-index: 2; display: grid; width: min(410px, 100%); min-height: 480px; place-items: center; isolation: isolate; }
.aw-chest-opening-stage::before { content: ""; position: absolute; z-index: -1; left: 50%; bottom: 86px; width: 300px; height: 76px; border-radius: 50%; opacity: .48; background: radial-gradient(ellipse, rgba(var(--rarity-rgb), .38), rgba(var(--rarity-rgb), 0) 68%); transform: translateX(-50%); filter: blur(5px); }
.aw-chest-canvas { position: absolute; z-index: 3; left: 50%; bottom: 26px; width: 288px; height: 288px; image-rendering: pixelated; transform: translateX(-50%); transform-origin: 50% 84%; filter: drop-shadow(0 20px 18px rgba(0, 0, 0, .54)); }
.aw-chest-reward { position: absolute; z-index: 2; left: 50%; bottom: 190px; display: flex; width: 250px; flex-direction: column; align-items: center; opacity: 0; transform: translate(-50%, 95px) scale(.35); }
.aw-chest-reward canvas { width: 224px; height: 224px; image-rendering: pixelated; filter: drop-shadow(0 0 22px rgba(var(--rarity-rgb), .58)); }
.aw-chest-reward small { margin-top: -9px; color: var(--rarity); font-size: 12px; font-weight: 950; letter-spacing: .13em; text-transform: uppercase; }
.aw-chest-reward strong { margin-top: 7px; color: #fff; font-size: 21px; font-weight: 950; }
.aw-chest-reward span { margin-top: 5px; color: #b9c8d8; font-size: 13px; font-weight: 750; text-align: center; }
.aw-chest-fx { position: absolute; z-index: 1; inset: 0; overflow: hidden; opacity: 0; pointer-events: none; transition: opacity .45s ease; }
.aw-chest-fx canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.aw-chest-fx::before { content: ""; position: absolute; left: 50%; bottom: 96px; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--rarity-rgb), .3), rgba(var(--rarity-rgb), .1) 46%, transparent 72%); transform: translateX(-50%); filter: blur(3px); }
.aw-chest-action { position: relative; z-index: 4; width: min(310px, 100%) !important; min-height: 52px; margin: 0 !important; border-color: rgba(var(--rarity-rgb), .55) !important; background: linear-gradient(135deg, rgba(var(--rarity-rgb), .3), rgba(var(--rarity-rgb), .12)) !important; box-shadow: inset 0 1px rgba(255, 255, 255, .11), 0 0 28px rgba(var(--rarity-rgb), .13); }
.aw-chest-opening-actions { position: relative; z-index: 4; display: grid; width: min(310px, 100%); gap: 3px; }
.aw-chest-opening-actions .aw-chest-action { width: 100% !important; }
.aw-chest-opening-actions [data-aw-skip-loot] { min-height: 36px; color: #a7bacd; font-size: 12px; }
.aw-chest-action:not(:disabled):hover { border-color: var(--rarity) !important; box-shadow: inset 0 1px rgba(255, 255, 255, .15), 0 0 38px rgba(var(--rarity-rgb), .24); }
.aw-chest-opening.is-opening .aw-chest-canvas { animation: aw-chest-open .64s steps(10, end) both; }
.aw-chest-opening.is-open .aw-chest-canvas { transform: translateX(-50%) translateY(12px) scale(.92); filter: drop-shadow(0 20px 18px rgba(0, 0, 0, .42)) brightness(1.12); }
.aw-chest-opening.is-reward .aw-chest-reward,
.aw-chest-opening.is-open .aw-chest-reward { z-index: 4; animation: aw-chest-reward .72s cubic-bezier(.16, 1.12, .28, 1) both; }
.aw-chest-opening.is-lid-opening .aw-chest-fx,
.aw-chest-opening.is-reward .aw-chest-fx,
.aw-chest-opening.is-open .aw-chest-fx { opacity: 1; }
.aw-chest-opening.is-open::after { animation: aw-chest-flare 1.4s ease-in-out infinite; }
.aw-loot-summary { width: min(1180px, 100%); }

.aw-run-result { overflow: auto; }
.aw-run-result .aw-result-card { width: min(940px, calc(100% - 34px)); margin: 48px auto; padding: clamp(26px, 4vw, 50px); border-radius: 22px; }
.aw-result-status { text-align: center; }
.aw-result-status small { color: var(--aw-aether); font-size: 12px; font-weight: 900; letter-spacing: .15em; }
.aw-result-status h1 { margin: 12px 0 0; color: #fff; font-size: clamp(64px, 8vw, 104px); font-weight: 950; line-height: .9; letter-spacing: -.07em; }
.aw-result-status h1 span { margin-left: 8px; color: var(--aw-aether); font-size: 25px; letter-spacing: 0; }
.aw-result-status > strong { display: block; margin-top: 12px; color: var(--aw-gold); font-size: 16px; }
.aw-result-verification { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; }
.aw-result-verification span,
.aw-result-verification b { padding: 6px 10px; border: 1px solid rgba(93, 228, 190, .28); border-radius: 999px; background: rgba(30, 111, 91, .16); color: #89f2cf; font-size: 12px; font-weight: 900; letter-spacing: .04em; }
.aw-result-verification b { border-color: rgba(255, 205, 95, .24); background: rgba(122, 83, 18, .16); color: #ffd875; }
.aw-result-progress { max-width: 600px; margin: 28px auto 0; }
.aw-result-progress > div:first-child { display: flex; justify-content: space-between; font-size: 13px; }
.aw-result-progress span { color: var(--aw-muted); }
.aw-result-progress strong { color: #ff96a5; }
.aw-result-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 28px; }
.aw-result-stats > div { display: flex; min-height: 80px; flex-direction: column; align-items: center; justify-content: center; border: 1px solid rgba(128, 153, 186, .16); border-radius: 11px; background: rgba(5, 9, 17, .48); }
.aw-result-stats span { color: var(--aw-muted); font-size: 12px; text-align: center; }
.aw-result-stats strong { margin-top: 5px; color: #f5f9fe; font-size: 21px; font-weight: 950; }
.aw-result-stats { grid-template-columns: repeat(4, 1fr); }
.aw-result-details { margin-top: 14px; }
.aw-result-details > summary { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1px solid rgba(128, 153, 186, .2); border-radius: 999px; color: var(--aw-muted); font-size: 13px; font-weight: 800; cursor: pointer; user-select: none; list-style: none; }
.aw-result-details > summary::-webkit-details-marker { display: none; }
.aw-result-details > summary::after { content: "▾"; font-size: 12px; transition: transform .18s ease; }
.aw-result-details[open] > summary::after { transform: rotate(180deg); }
.aw-result-details > summary:hover { border-color: rgba(116, 232, 218, .4); color: #cfe7e2; }
.aw-result-stats-extra { grid-template-columns: repeat(4, 1fr); margin-top: 12px; }
.aw-result-stats-extra > div { min-height: 64px; background: rgba(8, 14, 25, .66); }
.aw-result-stats-extra strong { font-size: 17px; }
.aw-result-loot { margin-top: 24px; padding: 15px; overflow: hidden; border: 1px solid rgba(243, 201, 107, .2); border-radius: 15px; background: linear-gradient(145deg, rgba(243, 201, 107, .055), rgba(6, 10, 18, .74)); }
.aw-result-loot > header { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding: 0 4px 11px; border-bottom: 1px solid rgba(243, 201, 107, .12); }
.aw-result-loot > header > div { display: flex; flex-direction: column; }
.aw-result-loot > header small { color: var(--aw-gold); font-size: 12px; font-weight: 950; letter-spacing: .13em; }
.aw-result-loot > header strong { margin-top: 3px; color: #fff1c6; font-size: 15px; }
.aw-result-loot > header > span { max-width: 430px; color: var(--aw-muted); font-size: 12px; line-height: 1.5; text-align: right; }
.aw-result-chest-parade { display: grid; grid-auto-columns: 116px; grid-auto-flow: column; gap: 8px; padding: 12px 2px 4px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-color: rgba(243, 201, 107, .42) transparent; scrollbar-width: thin; }
.aw-result-chest-parade article { position: relative; display: flex; min-height: 145px; flex-direction: column; align-items: center; justify-content: flex-end; padding: 7px; overflow: hidden; scroll-snap-align: start; border: 1px solid rgba(var(--rarity-rgb), .3); border-radius: 10px; background: radial-gradient(circle at 50% 40%, rgba(var(--rarity-rgb), .14), transparent 46%), rgba(5, 9, 17, .72); box-shadow: inset 0 1px rgba(255,255,255,.035); animation: aw-result-chest-in .55s cubic-bezier(.18,.82,.2,1) both; animation-delay: min(calc(var(--aw-loot-index) * 45ms), 720ms); }
.aw-result-chest-parade canvas { width: 104px; height: 104px; margin-bottom: -3px; image-rendering: pixelated; filter: drop-shadow(0 8px 9px rgba(0,0,0,.38)); }
.aw-result-chest-parade small { color: var(--rarity); font-size: 12px; font-weight: 950; letter-spacing: .06em; }
.aw-result-chest-parade strong { max-width: 100%; margin-top: 3px; overflow: hidden; color: #dce7f2; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.aw-result-actions { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; align-items: stretch; gap: 8px; margin-top: 28px; }
.aw-result-actions.has-loot { grid-template-columns: minmax(240px, 2fr) repeat(4, minmax(90px, 1fr)); }
.aw-result-actions .aw-launch { width: 100%; min-height: 58px; margin: 0; }
.aw-result-actions .aw-result-open { border-color: rgba(243, 201, 107, .58); background: linear-gradient(180deg, #ffe49b, #d59832); box-shadow: 0 13px 35px rgba(213, 152, 50, .2); }
.aw-result-actions .aw-result-open > span { color: #4b3007; }
.aw-result-actions .aw-result-open > strong { color: #1d1406; }

/* Dedicated replay ----------------------------------------------------- */
.aw-replay-grid { display: grid; grid-template-columns: minmax(300px, .86fr) minmax(580px, auto) minmax(300px, .82fr); align-items: center; gap: 18px; width: min(1840px, 100%); height: calc(100% - 66px); min-height: 0; margin: 0 auto; padding: 15px 24px 20px; }
.aw-replay-boss { display: grid; align-self: stretch; grid-template-rows: minmax(300px, 1fr) auto auto; gap: 11px; }
.aw-replay-floor { display: flex; min-height: 76px; align-items: baseline; justify-content: center; gap: 9px; padding: 12px; border: 1px solid var(--aw-line); border-radius: 11px; background: var(--aw-panel); }
.aw-replay-floor span { color: var(--aw-aether); font-size: 12px; font-weight: 900; letter-spacing: .1em; }
.aw-replay-floor strong { color: #fff; font-size: 34px; }
.aw-replay-floor small { align-self: center; color: var(--aw-muted); font-size: 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aw-replay-field { display: flex; height: 100%; min-height: 0; flex-direction: column; align-items: center; justify-content: center; }
#aw-replay-field-host { width: 100%; }
#aw-replay-field-host .tetra-wrap { max-width: 100%; padding: 10px; gap: 9px; background: rgba(4, 8, 15, .96); }
#aw-replay-field-host .tetra-side { width: 116px; }
.aw-replay-controls { display: grid; grid-template-columns: 90px minmax(250px, 1fr) auto; width: 100%; align-items: center; gap: 10px; margin-top: 9px; padding: 9px; border: 1px solid var(--aw-line); border-radius: 11px; background: rgba(9, 15, 27, .95); }
.aw-replay-controls button { min-height: 34px; border: 1px solid rgba(128, 153, 186, .24); color: var(--aw-ink); background: #172338; }
.aw-replay-seek { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 9px; }
.aw-replay-seek input { width: 100%; accent-color: var(--aw-aether); }
.aw-replay-seek span { color: var(--aw-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.aw-replay-speeds { display: flex; gap: 4px; }
.aw-replay-speeds button { min-width: 42px; padding: 0 7px; }
.aw-replay-speeds button.is-active { border-color: var(--aw-aether); color: var(--aw-aether); }
.aw-replay-data { display: flex; align-self: stretch; min-height: 0; flex-direction: column; padding: 17px; overflow: auto; border: 1px solid var(--aw-line); border-radius: 15px; background: var(--aw-panel); }
.aw-replay-loadout { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 13px; }
.aw-replay-loadout .aw-battle-item { width: 100%; height: 58px; }
.aw-replay-loadout .aw-battle-item canvas { width: 54px; height: 54px; }
.aw-replay-timeline { margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--aw-line); }
.aw-replay-timeline > span { color: var(--aw-muted); font-size: 12px; font-weight: 800; }
.aw-replay-timeline > div { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.aw-replay-timeline button { min-height: 31px; padding: 0 9px; border: 1px solid rgba(99, 230, 255, .25); color: var(--aw-aether); background: rgba(99, 230, 255, .055); }
.aw-replay-data .aw-live-metrics { margin-top: auto; padding-top: 13px; }

/* Loading and small feedback ------------------------------------------ */
.aw-shell-loading,
.aw-shell-error { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.aw-shell-loading h1 { margin: 10px 0 0; font-size: clamp(38px, 6vw, 76px); letter-spacing: .18em; text-indent: .18em; }
.aw-shell-loading p { margin: 12px 0 0; color: var(--aw-muted); font-size: 14px; }
.aw-loading-mark { display: flex; align-items: end; gap: 5px; width: 58px; height: 42px; }
.aw-loading-mark i { width: 15px; background: var(--aw-aether); box-shadow: 0 0 14px rgba(99, 230, 255, .35); animation: aw-load-bars 1s ease-in-out infinite; }
.aw-loading-mark i:nth-child(1) { height: 20px; }
.aw-loading-mark i:nth-child(2) { height: 38px; animation-delay: -.16s; }
.aw-loading-mark i:nth-child(3) { height: 28px; animation-delay: -.32s; }
.aw-error-card { width: min(520px, calc(100% - 32px)); padding: 36px; border: 1px solid rgba(255, 62, 88, .34); border-radius: 19px; background: var(--aw-panel); }
.aw-error-card > span { color: #ff8798; font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.aw-error-card h1 { margin: 9px 0 0; font-size: 24px; }
.aw-error-card p { margin: 10px 0 20px; color: var(--aw-muted); font-size: 13px; }
.aw-error-card button { width: 220px; }
.aw-shell-error > .aw-back { position: absolute; left: 24px; top: 20px; }
.aw-toast { position: fixed; z-index: 500; left: 50%; bottom: 28px; min-width: 260px; max-width: min(520px, calc(100% - 32px)); padding: 12px 18px; border: 1px solid rgba(99, 230, 255, .42); border-radius: 11px; color: #eafeff; text-align: center; background: rgba(10, 20, 32, .96); box-shadow: 0 18px 55px rgba(0, 0, 0, .45); transform: translateX(-50%); animation: aw-toast-in .25s ease both; }

@keyframes aw-spin { to { transform: rotate(360deg); } }
@keyframes aw-load-bars { 0%, 100% { opacity: .35; transform: scaleY(.55); } 50% { opacity: 1; transform: scaleY(1); } }
@keyframes aw-epic { 0%, 100% { opacity: .12; transform: scale(.88); } 50% { opacity: .34; transform: scale(1.13); } }
@keyframes aw-mythic { 0%, 100% { opacity: .18; transform: scale(.88) rotate(0); } 50% { opacity: .5; transform: scale(1.16) rotate(8deg); } }
@keyframes aw-rank-jump { 0%, 100% { box-shadow: none; } 20%, 70% { box-shadow: inset 0 0 0 1px var(--aw-aether), 0 0 28px rgba(99, 230, 255, .25); } }
@keyframes aw-rage-wash { 0%, 100% { opacity: .48; } 50% { opacity: 1; } }
@keyframes aw-reveal-item { from { opacity: 0; transform: scale(.45) translateY(24px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes aw-reveal-card { 0% { opacity: 0; transform: translateY(26px) scale(.78); } 68% { opacity: 1; transform: translateY(-3px) scale(1.045); } 100% { opacity: 1; transform: none; } }
@keyframes aw-toast-in { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes aw-chest-open {
  0%, 16% { transform: translateX(-50%); filter: drop-shadow(0 20px 18px rgba(0, 0, 0, .54)) brightness(1); }
  24% { transform: translateX(calc(-50% - 3px)); }
  32% { transform: translateX(calc(-50% + 3px)); }
  42% { transform: translateX(calc(-50% - 5px)); filter: drop-shadow(0 12px 26px rgba(var(--rarity-rgb), .35)) brightness(1.14); }
  54% { transform: translateX(calc(-50% + 4px)); }
  68% { transform: translateX(calc(-50% - 2px)); filter: drop-shadow(0 8px 34px rgba(var(--rarity-rgb), .58)) brightness(1.35); }
  100% { transform: translateX(-50%); filter: drop-shadow(0 14px 28px rgba(var(--rarity-rgb), .42)) brightness(1.12); }
}
@keyframes aw-chest-reward { 0% { opacity: 0; transform: translate(-50%, 95px) scale(.35); } 58% { opacity: 1; transform: translate(-50%, -14px) scale(1.08); } 100% { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes aw-chest-flare { 0%, 100% { opacity: .38; transform: scaleX(.72); } 50% { opacity: 1; transform: scaleX(1); } }
@keyframes aw-result-chest-in { 0% { opacity: 0; transform: translateY(-18px) scale(.82); filter: brightness(2); } 70% { opacity: 1; transform: translateY(3px) scale(1.03); } 100% { opacity: 1; transform: none; filter: none; } }
@keyframes aw-item-glow {
  0%, 100% { box-shadow: inset 0 1px rgba(255, 255, 255, .08), inset 0 0 12px rgba(var(--rarity-rgb), .14), 0 0 9px rgba(var(--rarity-rgb), .2), 0 6px 14px rgba(0, 0, 0, .35); }
  50% { box-shadow: inset 0 1px rgba(255, 255, 255, .1), inset 0 0 16px rgba(var(--rarity-rgb), .26), 0 0 19px rgba(var(--rarity-rgb), .4), 0 6px 14px rgba(0, 0, 0, .35); }
}

/* Solo menu RPG card --------------------------------------------------- */
.mg-solo-rpg { position: relative; padding: 18px; overflow: hidden; border: 1px solid rgba(99, 230, 255, .22); border-radius: 18px; background: radial-gradient(circle at 78% 38%, rgba(99, 230, 255, .1), transparent 34%), linear-gradient(120deg, rgba(13, 26, 43, .95), rgba(8, 12, 24, .96)); }
.mg-solo-rpg::after { content: ""; position: absolute; top: -90px; right: 7%; width: 260px; height: 260px; pointer-events: none; border: 1px solid rgba(99, 230, 255, .12); transform: rotate(45deg); box-shadow: inset 0 0 45px rgba(99, 230, 255, .04); }
.mg-mode-cards-rpg { position: relative; z-index: 2; grid-template-columns: 1fr !important; }
.mg-mode-card.mg-art-arena-war { aspect-ratio: auto; min-height: 230px; background-image: linear-gradient(180deg, rgba(8, 14, 26, 0) 46%, rgba(8, 14, 26, .78) 88%), url(/img/minigames/tetra/generated/tetra-mode-card-wide-arenawar-v1.png); image-rendering: pixelated; border-color: rgba(111, 232, 168, .3); }
.mg-mode-card.mg-art-arena-war:hover { box-shadow: inset 0 0 0 1px rgba(111, 232, 168, .55), 0 10px 30px rgba(0, 0, 0, .4); }
.mg-mode-card.mg-art-arena-war .mg-mode-name { font-size: 25px; }
.mg-mode-card.mg-art-arena-war .mg-mode-desc { max-width: 520px; margin-top: 8px; color: #a9bccf; font-size: 14px; line-height: 1.5; }

@media (max-width: 1440px) {
  .aw-battle-grid, .aw-replay-grid { grid-template-columns: minmax(260px, .8fr) minmax(530px, auto) minmax(250px, .75fr); gap: 12px; padding-inline: 12px; }
  .aw-field-host .tetra-side, #aw-replay-field-host .tetra-side { width: 102px; }
  .aw-derived-compact .aw-derived-row { min-height: 31px; }
  .aw-combat-panel { padding: 12px; }
}

@media (max-width: 1120px) {
  .aw-battle-grid, .aw-replay-grid { grid-template-columns: minmax(240px, .72fr) minmax(500px, auto); overflow: auto; align-items: start; }
  .aw-combat-panel, .aw-replay-data { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); align-self: auto; overflow: visible; }
  .aw-combat-panel .aw-combat-state, .aw-replay-data .aw-panel-head { grid-column: 1 / -1; }
  .aw-combat-panel .aw-run-loot { margin: 0; }
  .aw-replay-grid { height: auto; min-height: calc(100% - 66px); }
  .aw-replay-data .aw-replay-loadout { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .aw-topbar { grid-template-columns: auto 1fr auto; min-height: 68px; }
  .aw-brand { text-align: left; padding-left: 13px; }
  .aw-brand h1 { font-size: 21px; text-align: left; }
  .aw-brand .aw-eyebrow { display: none; }
  .aw-account span, .aw-account i { display: none; }
  .aw-account strong:first-of-type { display: none; }
  .aw-battle { overflow: auto; }
  .aw-battle-grid, .aw-replay-grid { grid-template-columns: 1fr; width: 100%; height: auto; overflow: visible; }
  .aw-boss-panel, .aw-replay-boss { grid-template-columns: 1fr 1fr; grid-template-rows: 230px auto; }
  .aw-boss-stage { grid-column: 1 / -1; min-height: 230px; }
  .aw-hp-conduit::after { display: none; }
  .aw-field-column, .aw-replay-field { min-height: 650px; }
  .aw-combat-panel, .aw-replay-data { grid-template-columns: 1fr 1fr; }
  .aw-result-actions { grid-template-columns: 1fr 1fr; }
  .aw-result-actions.has-loot { grid-template-columns: 1fr 1fr; }
  .aw-result-actions .aw-launch { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .aw-back { min-width: 44px; width: 44px; padding: 0; justify-content: center; }
  .aw-back b { display: none; }
  .aw-account { display: none; }
  .aw-topbar { grid-template-columns: 48px 1fr 48px; padding-inline: 10px; }
  .aw-brand { padding: 0; text-align: center; }
  .aw-brand h1 { font-size: 19px; text-align: center; }
  .aw-battle-ribbon { grid-template-columns: 70px 1fr 85px; padding-inline: 10px; }
  .aw-battle-ribbon strong { font-size: 16px; }
  .aw-ribbon-title strong { font-size: 14px; }
  .aw-field-column, .aw-replay-field { min-height: 600px; }
  .aw-equipped-rail { flex-direction: column; }
  .aw-equipped-rail > div { gap: 3px; }
  .aw-battle-item { width: 39px; height: 39px; }
  .aw-battle-item canvas { width: 37px; height: 37px; }
  .aw-combat-panel, .aw-replay-data { grid-template-columns: 1fr; }
  .aw-replay-controls { grid-template-columns: 74px 1fr; }
  .aw-replay-speeds { grid-column: 1 / -1; justify-content: center; }
  .aw-result-stats { grid-template-columns: 1fr 1fr; }
  .aw-result-actions { grid-template-columns: 1fr; }
  .aw-result-actions.has-loot { grid-template-columns: 1fr; }
  .aw-result-actions .aw-launch { grid-column: auto; }
  .aw-reveal-grid { grid-template-columns: 1fr; }
  .mg-mode-cards-rpg { grid-template-columns: 1fr !important; }
  .mg-mode-card.mg-art-arena-war { padding: 24px 20px 24px 104px; }
  .mg-mode-card.mg-art-arena-war::before { left: 21px; width: 58px; height: 58px; }
  .mg-mode-card.mg-art-arena-war::after { left: 14px; width: 76px; }
  .mg-arena-war-emblem { left: 13px; width: 76px; height: 76px; }
}

@media (max-width: 480px) {
  .aw-boss-panel, .aw-replay-boss { grid-template-columns: 1fr; grid-template-rows: 210px auto auto; }
  .aw-boss-stage { grid-column: auto; }
  .aw-field-column, .aw-replay-field { min-height: 560px; }
  .aw-field-host .tetra-wrap, #aw-replay-field-host .tetra-wrap { max-width: calc(100vw - 12px); }
  .aw-result-stats { grid-template-columns: 1fr 1fr; gap: 6px; }
  .aw-result-stats > div { min-height: 68px; }
  .aw-confirm { padding: 22px 18px; }
  .aw-confirm > div { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .aw-shell *,
  .aw-shell *::before,
  .aw-shell *::after,
  .aw-work-layer,
  .aw-work-layer *,
  .aw-work-layer *::before,
  .aw-work-layer *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* Shared PIXI battle surface ------------------------------------------ */
.aw-battle,
.aw-replay {
  --aw-ui-hud-opacity: .94;
  --aw-ui-hud-scale: 1;
  --aw-ui-item-scale: 1;
  --aw-ui-item-gap: 6px;
  --aw-ui-item-opacity: 1;
  --aw-ui-ribbon-scale: 1;
  --aw-ui-atmosphere: 1;
  position: relative;
  overflow: hidden;
}
.aw-pixi-host { position: absolute; z-index: 1; inset: 0; overflow: hidden; }
.aw-pixi-host > canvas { display: block; width: 100%; height: 100%; }
.aw-battle[data-aw-ui-editing="1"] .aw-pixi-host,
.aw-replay[data-aw-ui-editing="1"] .aw-pixi-host { z-index: 20; }
.aw-battle[data-aw-ui-editing="1"] .aw-battle-grid > *,
.aw-battle[data-aw-ui-editing="1"] .aw-battle-ribbon,
.aw-replay[data-aw-ui-editing="1"] .aw-replay-grid > *,
.aw-replay[data-aw-ui-editing="1"] .aw-battle-ribbon { opacity: .16; pointer-events: none !important; }
.aw-engine-host {
  position: fixed !important;
  left: -100000px !important;
  top: -100000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.aw-battle-ribbon { position: absolute; z-index: 8; top: 2px; left: 50%; width: min(540px, calc(100% - 500px)); min-height: 42px; padding: 4px 16px; transform: translateX(-50%); border: 1px solid rgba(99, 230, 255, .18); border-radius: 0 0 12px 12px; background: linear-gradient(180deg, rgba(6, 12, 23, .94), rgba(6, 12, 23, .72)); box-shadow: 0 10px 30px rgba(0, 0, 0, .28); pointer-events: none; }
.aw-battle-ribbon strong { font-size: 16px; }
.aw-battle-grid,
.aw-replay-grid { position: absolute; z-index: 4; inset: 0; display: block; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; pointer-events: none; }
.aw-boss-panel,
.aw-replay-boss,
.aw-combat-panel,
.aw-replay-data,
.aw-equipped-rail,
.aw-replay-controls { position: absolute; z-index: 5; margin: 0; box-sizing: border-box; }
.aw-boss-panel,
.aw-replay-boss { display: grid; grid-template-rows: minmax(140px, 1fr) auto auto; gap: 9px; min-width: 0; pointer-events: none; }
.aw-boss-panel[data-aw-free-layout="1"],
.aw-replay-boss[data-aw-free-layout="1"] { display: block; min-width: 0; min-height: 0; }
.aw-boss-panel[data-aw-free-layout="1"] > .aw-boss-stage,
.aw-boss-panel[data-aw-free-layout="1"] > .aw-hp-conduit,
.aw-boss-panel[data-aw-free-layout="1"] > .aw-threat,
.aw-replay-boss[data-aw-free-layout="1"] > .aw-boss-stage,
.aw-replay-boss[data-aw-free-layout="1"] > .aw-hp-conduit,
.aw-replay-boss[data-aw-free-layout="1"] > .aw-replay-floor { position: absolute; box-sizing: border-box; margin: 0; }
.aw-boss-stage { min-height: 130px; border-color: rgba(99, 230, 255, .22); background: rgba(4, 8, 16, .12); box-shadow: inset 0 0 42px rgba(0, 0, 0, .18), 0 0 30px rgba(99, 230, 255, .05); }
.aw-boss-panel[data-compact="1"] .aw-hp-conduit,
.aw-boss-panel[data-compact="1"] .aw-threat,
.aw-replay-boss[data-compact="1"] .aw-hp-conduit,
.aw-replay-boss[data-compact="1"] .aw-replay-floor { display: block; }
.aw-boss-panel[data-compact="1"] .aw-hp-conduit,
.aw-boss-panel[data-compact="1"] .aw-threat,
.aw-replay-boss[data-compact="1"] .aw-hp-conduit,
.aw-replay-boss[data-compact="1"] .aw-replay-floor { padding: 7px 9px; }
.aw-combat-panel,
.aw-replay-data { pointer-events: auto; backdrop-filter: blur(14px); }
.aw-field-column,
.aw-replay-field { position: static; width: 0; height: 0; min-height: 0; }
.aw-equipped-rail { display: flex; z-index: 7; min-height: 54px; padding: 4px 8px; border: 1px solid rgba(99, 230, 255, .13); border-radius: 10px; background: rgba(5, 10, 19, .75); pointer-events: auto; backdrop-filter: blur(8px); }
.aw-replay-controls { z-index: 7; min-height: 52px; pointer-events: auto; }
.aw-replay-data[hidden],
.aw-combat-panel[hidden] { display: none !important; }

.aw-player-side { z-index: 6; pointer-events: none; }
.aw-monster-side { z-index: 5; }
.aw-monster-side .aw-boss-stage {
  border-color: rgba(116, 232, 218, .22);
  border-radius: 18px;
  background: rgba(3, 10, 16, .08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025), inset 0 -55px 70px rgba(3, 8, 12, .28), 0 18px 55px rgba(0, 0, 0, .18);
}
.aw-monster-side .aw-boss-stage::before { inset: 9px; border-color: rgba(130, 236, 222, .09); }
.aw-battle .aw-battle-ribbon,
.aw-replay .aw-battle-ribbon {
  display: grid;
  grid-template-columns: minmax(70px, .72fr) minmax(180px, 1.8fr) minmax(80px, .72fr);
  min-height: 46px;
  padding: 4px 15px;
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(7, 18, 26, .97), rgba(5, 13, 21, .9));
  box-shadow: inset 0 1px rgba(255, 255, 255, .035), 0 12px 38px rgba(0, 0, 0, .22);
}
.aw-battle .aw-equipped-rail {
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 6px 10px;
  border-color: rgba(116, 232, 218, .26);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(9, 22, 31, .97), rgba(5, 12, 20, .96));
  box-shadow: inset 0 1px rgba(255, 255, 255, .035), 0 14px 36px rgba(0, 0, 0, .26);
}
.aw-battle .aw-equipped-rail > span { color: #bad5d5; font-size: 12px; font-weight: 900; letter-spacing: .07em; }
.aw-battle .aw-equipped-rail > div { display: grid; grid-template-columns: repeat(7, minmax(42px, 58px)); gap: 7px; }
.aw-battle .aw-battle-item {
  width: min(54px, 7vh);
  height: min(54px, 7vh);
  border: 1px solid rgba(var(--rarity-rgb), .62);
  border-radius: 10px;
  background: radial-gradient(circle at 50% 24%, rgba(var(--rarity-rgb), .2), transparent 62%), linear-gradient(172deg, #131c2c, #070c16 78%);
  box-shadow: inset 0 1px rgba(255, 255, 255, .08), inset 0 0 12px rgba(var(--rarity-rgb), .16), 0 0 11px rgba(var(--rarity-rgb), .24), 0 6px 14px rgba(0, 0, 0, .35);
}
.aw-battle .aw-battle-item::before { content: ""; position: absolute; left: 14%; right: 14%; top: 0; height: 2px; border-radius: 0 0 3px 3px; background: var(--rarity); box-shadow: 0 0 9px rgba(var(--rarity-rgb), .75); }
.aw-battle .aw-battle-item canvas { width: 92%; height: 92%; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); }
.aw-battle .aw-battle-item.rarity-epic { animation: aw-item-glow 2.6s ease-in-out infinite; }
.aw-battle .aw-battle-item.rarity-mythic { animation: aw-item-glow 1.9s ease-in-out infinite; }
.aw-battle .aw-battle-item.is-empty { border: 1px dashed rgba(128, 153, 186, .28); background: rgba(7, 12, 21, .82); box-shadow: none; animation: none; }
.aw-battle .aw-battle-item.is-empty::before { display: none; }
.aw-battle .aw-battle-item.is-empty i { width: 9px; height: 9px; border: 1px solid #4c5d73; opacity: .7; transform: rotate(45deg); }
.aw-effects-card {
  display: flex;
  position: absolute;
  z-index: 5;
  box-sizing: border-box;
  flex-direction: column;
  margin: 0;
  padding: 10px 12px;
  overflow: hidden;
  border: 1px solid rgba(116, 232, 218, .24);
  border-radius: 13px;
  background: linear-gradient(160deg, rgba(9, 22, 31, .97), rgba(6, 12, 21, .96));
  box-shadow: inset 0 1px rgba(255, 255, 255, .035), 0 14px 36px rgba(0, 0, 0, .24);
  opacity: var(--aw-ui-hud-opacity);
  pointer-events: auto;
  backdrop-filter: blur(10px);
}
.aw-effects-card[hidden] { display: none !important; }
.aw-battle:has(.aw-connection:not([hidden])) .aw-save-sync,
.aw-battle:has(.aw-connection:not([hidden])) .aw-combat-toast,
.aw-battle:has(.aw-fatal-layer) .aw-save-sync,
.aw-battle:has(.aw-fatal-layer) .aw-combat-toast,
.aw-battle:has(.aw-fatal-layer) .aw-connection { visibility: hidden; }
.aw-effects-card > small { color: #9fd8cf; font-size: 12px; font-weight: 800; letter-spacing: .05em; }
.aw-effects-card .aw-derived { flex: 1; min-height: 0; margin-top: 7px; overflow: hidden; }
.aw-effects-card .aw-derived-row { min-height: 30px; padding: 4px 1px; gap: 8px; }
.aw-effects-card .aw-derived-row span { font-size: 12px; }
.aw-effects-card .aw-derived-row strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.aw-effects-card .aw-effects-delay { margin-top: 6px; overflow: hidden; color: #a7bacd; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.aw-effects-card .aw-derived-row { min-height: 26px; padding: 3px 1px; }
.aw-effects-card .aw-derived-row.stat-spin,
.aw-effects-card .aw-derived-row.stat-chest,
.aw-effects-card .aw-derived-row.stat-boss_hp { display: none; }
.aw-effects-card[data-compact="1"] { padding: 8px 11px; }
.aw-effects-card[data-compact="1"] .aw-derived-row { min-height: 22px; padding: 2px 1px; }
.aw-effects-card[data-compact="1"] .aw-derived-row.stat-overflow { display: none; }
.aw-effects-card[data-tight="1"] .aw-derived-row.stat-receive { display: none; }
.aw-boss-mini {
  display: grid;
  grid-template-columns: auto auto auto minmax(0, 1fr);
  align-items: center;
  gap: 4px 12px;
  margin-top: 7px;
  padding-top: 6px;
  border-top: 1px solid rgba(128, 153, 186, .14);
}
.aw-boss-mini > div { display: flex; min-width: 0; align-items: baseline; gap: 5px; }
.aw-boss-mini > div span { color: var(--aw-muted); font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aw-boss-mini > div strong { overflow: hidden; color: var(--aw-ink); font-size: 13px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.aw-boss-loot { display: flex; justify-content: flex-end; gap: 3px; min-width: 0; overflow: hidden; }
.aw-boss-loot i { flex: none; width: 9px; height: 9px; border-radius: 3px; background: var(--rarity, #8ea4bd); box-shadow: 0 0 6px rgba(0, 0, 0, .4); }
.aw-boss-loot i.rarity-common { --rarity: #c7d3e2; }
.aw-boss-loot i.rarity-rare { --rarity: #b48cff; }
.aw-boss-loot i.rarity-epic { --rarity: #ffc164; }
.aw-boss-loot i.rarity-mythic { --rarity: #7deaff; }
.aw-boss-panel[data-condensed="1"] .aw-boss-mini { display: none; }
.aw-monster-hud.aw-combat-panel {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.25fr) minmax(0, .85fr);
  grid-template-rows: 28px minmax(88px, 1fr) 40px;
  gap: 7px 10px;
  padding: 10px 12px;
  overflow: hidden;
  border-color: rgba(116, 232, 218, .2);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(9, 22, 31, .94), rgba(7, 13, 23, .91));
  opacity: var(--aw-ui-hud-opacity);
}
.aw-monster-hud > *,
.aw-monster-hud .aw-live-metrics > div,
.aw-monster-hud .aw-derived-row,
.aw-monster-hud .aw-incoming-card,
.aw-monster-hud .aw-run-loot { min-width: 0; }
.aw-hp-conduit,
.aw-threat,
.aw-replay-floor { opacity: var(--aw-ui-hud-opacity); }
.aw-monster-hud span,
.aw-monster-hud small,
.aw-hp-conduit span,
.aw-hp-conduit small,
.aw-threat span { font-size: calc(12px * var(--aw-ui-hud-scale)) !important; }
.aw-monster-hud strong,
.aw-hp-conduit strong,
.aw-threat strong { font-size: calc(14px * var(--aw-ui-hud-scale)); }
.aw-battle .aw-battle-ribbon strong,
.aw-replay .aw-battle-ribbon strong { font-size: calc(16px * var(--aw-ui-ribbon-scale)); }
.aw-battle .aw-battle-ribbon span,
.aw-replay .aw-battle-ribbon span,
.aw-battle .aw-battle-ribbon small,
.aw-replay .aw-battle-ribbon small { font-size: calc(12px * var(--aw-ui-ribbon-scale)); }
.aw-battle .aw-equipped-rail > div { gap: var(--aw-ui-item-gap); }
.aw-battle .aw-battle-item {
  width: calc(50px * var(--aw-ui-item-scale));
  height: calc(50px * var(--aw-ui-item-scale));
  opacity: var(--aw-ui-item-opacity);
}
.aw-battle[data-aw-equipment-label="0"] .aw-equipped-rail > span { display: none; }
.aw-battle::after,
.aw-replay::after { opacity: var(--aw-ui-atmosphere); }

/* Arena War live UI tuner -------------------------------------------- */
.aw-ui-tuner-layer { position: fixed; z-index: 100080; inset: 0; pointer-events: none; }
.aw-ui-tuner {
  position: absolute;
  top: 70px;
  right: 16px;
  display: flex;
  width: min(390px, calc(100vw - 28px));
  max-height: calc(100vh - 90px);
  flex-direction: column;
  overflow: hidden;
  pointer-events: auto;
  border: 1px solid rgba(108, 230, 225, .42);
  border-radius: 18px;
  color: #eaf7f8;
  background: linear-gradient(165deg, rgba(11, 28, 36, .98), rgba(6, 11, 22, .98));
  box-shadow: inset 0 1px rgba(255, 255, 255, .05), 0 28px 90px rgba(0, 0, 0, .58), 0 0 34px rgba(76, 218, 211, .1);
  backdrop-filter: blur(18px);
}
.aw-ui-tuner header { display: flex; align-items: center; justify-content: space-between; padding: 17px 18px 12px; border-bottom: 1px solid rgba(116, 232, 218, .12); }
.aw-ui-tuner header small { color: #71ded6; font-size: 12px; font-weight: 950; letter-spacing: .13em; }
.aw-ui-tuner h2 { margin: 4px 0 0; font-size: 20px; letter-spacing: -.025em; }
.aw-ui-tuner header button { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(151, 185, 197, .2); border-radius: 9px; color: #bed2da; font-size: 23px; line-height: 1; background: rgba(255, 255, 255, .035); cursor: pointer; }
.aw-ui-tuner > p { margin: 0; padding: 11px 18px; color: #a8bec6; font-size: 12px; line-height: 1.55; background: rgba(53, 196, 188, .035); }
.aw-ui-tuner-scroll { padding: 2px 13px 14px; overflow: auto; scrollbar-width: thin; scrollbar-color: #377e7e rgba(255,255,255,.03); }
.aw-ui-tuner section { margin-top: 12px; padding: 12px; border: 1px solid rgba(135, 171, 185, .12); border-radius: 12px; background: rgba(255, 255, 255, .018); }
.aw-ui-tuner h3 { margin: 0 0 9px; color: #d9eeef; font-size: 12px; font-weight: 950; letter-spacing: .07em; }
.aw-ui-tuner-row { display: grid; grid-template-columns: minmax(108px, .9fr) minmax(110px, 1.25fr) 48px; align-items: center; gap: 9px; min-height: 32px; }
.aw-ui-tuner-row > span { color: #b5cbd2; font-size: 12px; font-weight: 750; }
.aw-ui-tuner-row input { width: 100%; height: 4px; accent-color: #68ddd4; cursor: ew-resize; }
.aw-ui-tuner-row output { color: #e8feff; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; font-weight: 900; text-align: right; }
.aw-ui-tuner-toggle { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; padding: 12px 13px; border: 1px solid rgba(135, 171, 185, .12); border-radius: 12px; background: rgba(255, 255, 255, .018); cursor: pointer; }
.aw-ui-tuner-toggle span { display: flex; min-width: 0; flex-direction: column; }
.aw-ui-tuner-toggle b { font-size: 12px; }
.aw-ui-tuner-toggle small { margin-top: 3px; color: #9db2bb; font-size: 12px; line-height: 1.4; }
.aw-ui-tuner-toggle input { position: absolute; opacity: 0; }
.aw-ui-tuner-toggle i { position: relative; width: 42px; height: 23px; flex: 0 0 auto; border-radius: 99px; background: #243340; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.aw-ui-tuner-toggle i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 17px; height: 17px; border-radius: 50%; background: #8398a3; transition: transform .16s ease, background .16s ease; }
.aw-ui-tuner-toggle input:checked + i { background: rgba(70, 194, 186, .3); box-shadow: inset 0 0 0 1px rgba(104, 221, 212, .48), 0 0 14px rgba(104,221,212,.12); }
.aw-ui-tuner-toggle input:checked + i::after { background: #82eee6; transform: translateX(19px); }
.aw-ui-tuner footer { display: grid; grid-template-columns: 1fr 1.35fr; gap: 8px; padding: 12px 14px 14px; border-top: 1px solid rgba(116, 232, 218, .12); }
.aw-ui-tuner footer button { min-height: 42px; border: 1px solid rgba(150, 181, 192, .2); border-radius: 10px; color: #c8d9df; font-size: 12px; font-weight: 900; background: rgba(255, 255, 255, .035); cursor: pointer; }
.aw-ui-tuner footer .is-primary { border-color: rgba(104, 221, 212, .5); color: #061619; background: linear-gradient(180deg, #83eee6, #48bcb7); }
.aw-monster-hud .aw-combat-state { grid-column: 1 / -1; grid-row: 1; min-height: 0; padding: 0 2px 6px; }
.aw-monster-hud .aw-live-metrics { grid-column: 1; grid-row: 2 / 4; grid-template-columns: 1fr 1fr; gap: 5px; }
.aw-monster-hud .aw-live-metrics > div { min-height: 42px; padding: 5px 8px; }
.aw-monster-hud .aw-live-metrics strong { margin-top: 1px; font-size: calc(18px * var(--aw-ui-hud-scale)); }
.aw-monster-hud .aw-derived-compact { grid-column: 2; grid-row: 2 / 4; display: grid; grid-template-columns: 1fr 1fr; align-content: center; column-gap: 12px; }
.aw-monster-hud .aw-derived-compact .aw-derived-row { min-height: 27px; padding: 3px 1px; }
.aw-monster-hud .aw-incoming-card { grid-column: 3; grid-row: 2; min-height: 0; padding: 8px 9px; overflow: hidden; }
.aw-monster-hud .aw-incoming-card strong { margin-top: 3px; font-size: calc(12px * var(--aw-ui-hud-scale)); line-height: 1.3; }
.aw-monster-hud .aw-incoming-card small { margin-top: 3px; }
.aw-monster-hud .aw-run-loot { grid-column: 3; grid-row: 3; min-width: 0; margin: 0; padding: 3px 0 0; }
.aw-monster-hud #aw-run-loot-list { min-height: 14px; flex-wrap: nowrap; gap: 3px; margin-top: 3px; overflow: hidden; }
.aw-monster-hud #aw-run-loot-list i { width: 12px; height: 12px; }
.aw-boss-panel[data-condensed="1"] .aw-hp-conduit,
.aw-replay-boss[data-condensed="1"] .aw-hp-conduit { padding: 4px 6px; }
.aw-boss-panel[data-condensed="1"] .aw-hp-conduit > small,
.aw-replay-boss[data-condensed="1"] .aw-hp-conduit > small { display: none; }
.aw-boss-panel[data-condensed="1"] .aw-hp-head,
.aw-replay-boss[data-condensed="1"] .aw-hp-head { gap: 5px; }
.aw-boss-panel[data-condensed="1"] .aw-hp-head span,
.aw-replay-boss[data-condensed="1"] .aw-hp-head span { font-size: 12px !important; }
.aw-boss-panel[data-condensed="1"] .aw-hp-head strong,
.aw-replay-boss[data-condensed="1"] .aw-hp-head strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.aw-boss-panel[data-condensed="1"] .aw-hp-track,
.aw-replay-boss[data-condensed="1"] .aw-hp-track { height: 7px; margin-top: 3px; }
.aw-boss-panel[data-condensed="1"] .aw-threat,
.aw-replay-boss[data-condensed="1"] .aw-replay-floor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) 3px;
  gap: 3px 7px;
  padding: 4px 6px;
  overflow: hidden;
}
.aw-boss-panel[data-condensed="1"] .aw-threat > div:not(.aw-threat-track) { min-width: 0; flex-direction: column; align-items: flex-start; justify-content: center; }
.aw-boss-panel[data-condensed="1"] .aw-threat > div:last-child { grid-column: 2; grid-row: 1; }
.aw-boss-panel[data-condensed="1"] .aw-threat-track { grid-column: 1 / -1; grid-row: 2; height: 3px; margin: 0; }
.aw-boss-panel[data-condensed="1"] .aw-threat span { font-size: 12px !important; }
.aw-boss-panel[data-condensed="1"] .aw-threat strong { max-width: 100%; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.aw-monster-hud.aw-combat-panel[data-compact="1"] {
  grid-template-columns: minmax(0, 1.2fr) minmax(78px, .8fr);
  grid-template-rows: 23px minmax(0, 1fr);
  gap: 5px 7px;
  padding: 7px 8px;
}
.aw-monster-hud.aw-combat-panel[data-compact="1"] .aw-combat-state { grid-column: 1 / -1; grid-row: 1; padding-bottom: 4px; }
.aw-monster-hud.aw-combat-panel[data-compact="1"] .aw-live-metrics { grid-column: 1; grid-row: 2; grid-template-columns: 1fr 1fr; gap: 3px; }
.aw-monster-hud.aw-combat-panel[data-compact="1"] .aw-live-metrics > div { min-height: 0; padding: 2px 5px; overflow: hidden; }
.aw-monster-hud.aw-combat-panel[data-compact="1"] .aw-live-metrics span { overflow: hidden; font-size: 12px !important; text-overflow: ellipsis; white-space: nowrap; }
.aw-monster-hud.aw-combat-panel[data-compact="1"] .aw-live-metrics strong { margin-top: 0; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.aw-monster-hud.aw-combat-panel[data-compact="1"] .aw-derived-compact,
.aw-monster-hud.aw-combat-panel[data-compact="1"] .aw-run-loot { display: none; }
.aw-monster-hud.aw-combat-panel[data-compact="1"] .aw-incoming-card { grid-column: 2; grid-row: 2; min-height: 0; padding: 6px; }
.aw-monster-hud.aw-combat-panel[data-compact="1"] .aw-incoming-card span,
.aw-monster-hud.aw-combat-panel[data-compact="1"] .aw-incoming-card small { font-size: 12px !important; line-height: 1.25; }
.aw-monster-hud.aw-combat-panel[data-compact="1"] .aw-incoming-card strong { margin-top: 3px; font-size: 12px; line-height: 1.25; }
.aw-battle[data-aw-enraged="1"]::after { background: linear-gradient(180deg, transparent, rgba(255, 70, 92, .48) 16%, rgba(255, 70, 92, .16) 82%, transparent); box-shadow: 0 0 38px rgba(255, 45, 70, .2); }

@media (max-width: 1100px) {
  .aw-battle-ribbon { width: min(420px, calc(100% - 300px)); }
  .aw-equipped-rail > span { display: none; }
  .aw-battle-item { width: 38px; height: 38px; }
  .aw-battle-item canvas { width: 36px; height: 36px; }
  .aw-monster-hud.aw-combat-panel { gap: 6px; padding: 8px; }
  .aw-monster-hud .aw-live-metrics strong { font-size: calc(16px * var(--aw-ui-hud-scale)); }
  .aw-monster-hud .aw-derived-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (max-width: 760px) {
  .aw-battle-ribbon { top: 45px; width: calc(100% - 16px); min-height: 38px; padding-inline: 8px; }
  .aw-battle-ribbon > div:last-child { display: none; }
  .aw-battle-ribbon { grid-template-columns: 64px 1fr; }
  .aw-boss-panel[data-compact="1"],
  .aw-replay-boss[data-compact="1"] { opacity: 1; }
  .aw-equipped-rail { overflow-x: auto; justify-content: flex-start; }
  .aw-replay-controls { grid-template-columns: 66px minmax(120px, 1fr); }
}
#aw-item-tip { position: fixed; z-index: 100000; pointer-events: none; opacity: 0; transform: translateY(6px) scale(.94); transition: opacity .14s ease, transform .18s cubic-bezier(.34,1.56,.64,1); background: rgba(9, 14, 24, .97); border: 1px solid #3c4c66; border-radius: 10px; padding: 9px 12px; min-width: 150px; max-width: 240px; box-shadow: 0 6px 22px rgba(0,0,0,.55); }
#aw-item-tip.is-show { opacity: 1; transform: translateY(0) scale(1); }
#aw-item-tip small { display: block; font-size: 11px; letter-spacing: .04em; color: #8fa3bd; margin-bottom: 3px; }
#aw-item-tip strong { display: block; font-size: 14px; color: #eaf2fc; margin-bottom: 4px; }
#aw-item-tip span { display: block; font-size: 12px; line-height: 1.45; color: #b9c9de; }
#aw-item-tip.rarity-common { border-color: #92a0af; box-shadow: 0 6px 22px rgba(0,0,0,.55), 0 0 14px rgba(146,160,175,.28); }
#aw-item-tip.rarity-common small { color: #b8c5d2; }
#aw-item-tip.rarity-rare { border-color: #9a72ff; box-shadow: 0 6px 22px rgba(0,0,0,.55), 0 0 16px rgba(154,114,255,.4); }
#aw-item-tip.rarity-rare small { color: #bda2ff; }
#aw-item-tip.rarity-epic { border-color: #ff54ce; box-shadow: 0 6px 22px rgba(0,0,0,.55), 0 0 18px rgba(255,84,206,.42); }
#aw-item-tip.rarity-epic small { color: #ff9ce5; }
#aw-item-tip.rarity-mythic { border-color: #ff792e; box-shadow: 0 6px 22px rgba(0,0,0,.55), 0 0 20px rgba(255,121,46,.5); }
#aw-item-tip.rarity-mythic small { color: #ffe091; }
.aw-battle-item:not(.is-empty):hover { transform: translateY(-3px) scale(1.06); filter: brightness(1.18); transition: transform .16s cubic-bezier(.34,1.56,.64,1), filter .16s ease; cursor: default; }
.aw-clear-fx { position: absolute; z-index: 65; pointer-events: none; overflow: visible; }
.aw-clear-fx i { position: absolute; inset: 0; border-radius: 8px; background: linear-gradient(180deg, rgba(255,255,255,.5), rgba(190,255,225,.16) 55%, transparent); opacity: 0; animation: awClearFlash .5s ease-out forwards; }
.aw-clear-fx b { position: absolute; left: 50%; top: 42%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 3px solid rgba(140,240,190,.9); border-radius: 50%; opacity: 0; animation: awClearRing .9s cubic-bezier(.16,.84,.44,1) forwards; }
.aw-clear-fx b.r2 { animation-delay: .12s; animation-duration: 1.05s; border-width: 2px; }
.aw-clear-fx.tier-guardian i { background: linear-gradient(180deg, rgba(236,214,255,.6), rgba(196,150,255,.2) 55%, transparent); }
.aw-clear-fx.tier-guardian b { border-color: rgba(196,150,255,.95); }
.aw-clear-fx.tier-major i { background: linear-gradient(180deg, rgba(255,241,205,.7), rgba(255,205,105,.24) 55%, transparent); animation-duration: .65s; }
.aw-clear-fx.tier-major b { border-color: rgba(255,208,94,1); border-width: 4px; }
@keyframes awClearFlash { 0% { opacity: 0; } 14% { opacity: 1; } 100% { opacity: 0; } }
@keyframes awClearRing { 0% { opacity: .95; transform: scale(.3); } 100% { opacity: 0; transform: scale(7.5); } }

.aw-result-fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: inherit; }
.aw-result-fx canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#aw-floor-banner { position: absolute; z-index: 72; pointer-events: none; width: 0; height: 0; --awc: 111, 232, 168; }
#aw-floor-banner.tier-guardian { --awc: 196, 150, 255; }
#aw-floor-banner.tier-major { --awc: 255, 208, 94; }
#aw-floor-banner.tier-enrage { --awc: 255, 91, 127; }
#aw-floor-banner em { position: absolute; left: -180px; top: -180px; width: 360px; height: 360px; border-radius: 50%; background-size: 100% 100%; background-repeat: no-repeat; opacity: 0; mix-blend-mode: screen; animation: awKoRays .95s cubic-bezier(.16, .84, .3, 1) forwards; }
#aw-floor-banner.tier-major em { animation-duration: 1.25s; transform-origin: center; }
#aw-floor-banner b { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border: 4px solid rgba(var(--awc), .95); border-radius: 50%; opacity: 0; box-shadow: 0 0 24px rgba(var(--awc), .7), inset 0 0 16px rgba(var(--awc), .4); animation: awKoRing .8s cubic-bezier(.16, .84, .44, 1) forwards; }
#aw-floor-banner b.r2 { animation-delay: .1s; animation-duration: .95s; border-width: 2px; }
#aw-floor-banner s { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--awc)); box-shadow: 0 0 10px rgba(var(--awc), .95), 0 0 24px rgba(var(--awc), .5); opacity: 0; transform: rotate(var(--awsA)) translateX(4px); animation: awKoSpark .85s cubic-bezier(.2, .8, .3, 1) forwards; animation-delay: calc(var(--awsT) * 28ms); }
#aw-floor-banner strong { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); white-space: nowrap; font-size: 46px; font-weight: 1000; font-style: italic; letter-spacing: .05em; color: #fff; -webkit-text-stroke: 2px rgba(10, 16, 28, .4); text-shadow: 0 0 22px rgba(var(--awc), .95), 0 0 62px rgba(var(--awc), .55), 0 3px 0 rgba(0, 0, 0, .6); opacity: 0; animation: awKoText 1.6s cubic-bezier(.18, 1.2, .32, 1) forwards; }
#aw-floor-banner.tier-guardian strong, #aw-floor-banner.tier-enrage strong { font-size: 52px; }
#aw-floor-banner.tier-major strong { font-size: 60px; }
@keyframes awKoText { 0% { opacity: 0; transform: translate(-50%, -50%) scale(2.15); filter: blur(4px); } 13% { opacity: 1; transform: translate(-50%, -50%) scale(.93); filter: blur(0); } 21% { transform: translate(-50%, -50%) scale(1.05); } 29% { transform: translate(-50%, -50%) scale(1); } 78% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -54%) scale(1); } }
@keyframes awKoRays { 0% { opacity: 0; transform: scale(.25) rotate(-14deg); } 15% { opacity: .95; } 100% { opacity: 0; transform: scale(1.18) rotate(10deg); } }
@keyframes awKoRing { 0% { opacity: .95; transform: scale(.16); } 100% { opacity: 0; transform: scale(6.4); } }
@keyframes awKoSpark { 0% { opacity: 0; transform: rotate(var(--awsA)) translateX(6px) scale(1.35); } 12% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--awsA)) translateX(var(--awsD)) scale(.2); } }
#aw-fs-pill { position: absolute; right: 12px; top: 9px; z-index: 80; display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px 7px 9px; border: 1px solid rgba(99, 230, 255, .32); border-radius: 999px; background: rgba(8, 16, 28, .82); color: #9fc3dd; font-size: 12px; font-weight: 800; letter-spacing: .03em; cursor: pointer; transition: border-color .16s ease, color .16s ease, box-shadow .16s ease; }
#aw-fs-pill:hover { border-color: rgba(99, 230, 255, .6); color: #d9f2ff; }
#aw-fs-pill i { position: relative; width: 30px; height: 16px; border-radius: 999px; background: rgba(94, 114, 140, .5); transition: background .18s ease; }
#aw-fs-pill i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #c8d6e6; transition: left .18s cubic-bezier(.34,1.56,.64,1), background .18s ease; }
#aw-fs-pill[data-on="1"] { border-color: rgba(111, 232, 168, .6); color: #c2ffdf; box-shadow: 0 0 14px rgba(111, 232, 168, .22); }
#aw-fs-pill[data-on="1"] i { background: rgba(47, 160, 109, .8); }
#aw-fs-pill[data-on="1"] i::after { left: 16px; background: #eafff3; }
#aw-fs-hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 90; padding: 13px 22px; border: 1px solid rgba(99, 230, 255, .35); border-radius: 12px; background: rgba(7, 13, 24, .93); color: #d9f2ff; font-size: 15px; font-weight: 800; letter-spacing: .04em; pointer-events: none; box-shadow: 0 10px 34px rgba(0, 0, 0, .5), 0 0 22px rgba(99, 230, 255, .18); animation: awFsHint 3s ease forwards; }
@keyframes awFsHint { 0% { opacity: 0; transform: translate(-50%, -46%) scale(.92); } 10% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 82% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -54%) scale(.98); } }
.aw-modal-layer.aw-loot-reveal { background: radial-gradient(circle at 50% 44%, rgba(var(--rarity-rgb, 146, 160, 175), .13), rgba(4, 8, 16, .94) 62%), rgba(4, 8, 16, .9); }
.aw-modal-layer.aw-loot-reveal .aw-chest-opening { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 34px 30px; border: 1px solid rgba(var(--rarity-rgb), .34); border-radius: 22px; background: linear-gradient(170deg, rgba(15, 22, 38, .96), rgba(8, 12, 24, .97)); box-shadow: 0 24px 80px rgba(0, 0, 0, .6), 0 0 44px rgba(var(--rarity-rgb), .18), inset 0 1px 0 rgba(255, 255, 255, .05); }
.aw-modal-layer.aw-loot-reveal .aw-chest-sequence { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.aw-modal-layer.aw-loot-reveal .aw-chest-sequence span { font-size: 12px; font-weight: 850; letter-spacing: .28em; text-indent: .28em; color: #8fa5c0; text-transform: uppercase; }
.aw-modal-layer.aw-loot-reveal .aw-chest-sequence strong { font-size: 24px; font-weight: 950; color: #f2f7ff; letter-spacing: .02em; }
.aw-chest-chip { margin-top: 3px; padding: 4px 14px; border-radius: 999px; border: 1px solid rgba(var(--rarity-rgb), .55); background: rgba(var(--rarity-rgb), .13); color: rgb(var(--rarity-rgb)); font-size: 12px; font-weight: 900; letter-spacing: .1em; }
.aw-modal-layer.aw-loot-reveal .aw-chest-opening-stage { position: relative; width: min(46vh, 430px); height: min(46vh, 430px); }
.aw-chest-ground { position: absolute; left: 50%; bottom: 5%; width: 72%; height: 13%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse, rgba(var(--rarity-rgb), .32), transparent 68%); filter: blur(2px); animation: awChestGround 2.4s ease-in-out infinite; }
.aw-modal-layer.aw-loot-reveal .aw-chest-canvas { position: absolute; left: 0 !important; top: 0 !important; right: 0; bottom: 0; margin: 0 !important; width: 100%; height: 100%; image-rendering: pixelated; animation: awChestBob 2.4s ease-in-out infinite; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .5)); }
.aw-modal-layer.aw-loot-reveal .is-unlocking .aw-chest-canvas { animation: awChestShake .5s ease-in-out infinite; }
.aw-modal-layer.aw-loot-reveal .is-lid-opening .aw-chest-canvas { animation: awChestPop .7s cubic-bezier(.2, 1.4, .4, 1) forwards; }
.aw-modal-layer.aw-loot-reveal .aw-chest-opening-actions { display: flex; flex-direction: column; align-items: center; gap: 9px; margin-top: 8px; }
.aw-modal-layer.aw-loot-reveal .aw-chest-action { min-width: 240px; padding: 15px 34px; border-radius: 999px; font-size: 17px; font-weight: 950; letter-spacing: .05em; border: 1px solid rgba(var(--rarity-rgb), .65); background: linear-gradient(180deg, rgba(var(--rarity-rgb), .3), rgba(var(--rarity-rgb), .12)); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); box-shadow: 0 0 22px rgba(var(--rarity-rgb), .3), inset 0 1px 0 rgba(255, 255, 255, .18); cursor: pointer; animation: awChestCta 1.6s ease-in-out infinite; transition: transform .14s ease; }
.aw-modal-layer.aw-loot-reveal .aw-chest-action:hover { transform: scale(1.04); }
.aw-modal-layer.aw-loot-reveal .aw-chest-action:disabled { animation: none; opacity: .55; cursor: default; }
@keyframes awChestBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes awChestGround { 0%, 100% { opacity: .8; transform: translateX(-50%) scaleX(1); } 50% { opacity: 1; transform: translateX(-50%) scaleX(1.07); } }
@keyframes awChestShake { 0%, 100% { transform: translateX(0) rotate(0); } 22% { transform: translateX(-5px) rotate(-1.4deg); } 48% { transform: translateX(4px) rotate(1.1deg); } 74% { transform: translateX(-3px) rotate(-.8deg); } }
@keyframes awChestPop { 0% { transform: scale(1); } 42% { transform: scale(1.09) translateY(-8px); } 100% { transform: scale(1.03) translateY(-4px); } }
@keyframes awChestCta { 0%, 100% { box-shadow: 0 0 18px rgba(var(--rarity-rgb), .28), inset 0 1px 0 rgba(255, 255, 255, .18); } 50% { box-shadow: 0 0 34px rgba(var(--rarity-rgb), .55), inset 0 1px 0 rgba(255, 255, 255, .18); } }
.aw-modal-layer.aw-loot-reveal .aw-loot-summary { padding: 26px 32px 28px; border: 1px solid rgba(99, 230, 255, .2); border-radius: 22px; background: linear-gradient(170deg, rgba(15, 22, 38, .96), rgba(8, 12, 24, .97)); box-shadow: 0 24px 80px rgba(0, 0, 0, .6); }
.aw-modal-layer.aw-loot-reveal .aw-reveal-head { text-align: center; margin-bottom: 16px; }
.aw-modal-layer.aw-loot-reveal .aw-reveal-head small { display: block; font-size: 12px; font-weight: 850; letter-spacing: .28em; text-indent: .28em; color: #8fa5c0; text-transform: uppercase; }
.aw-modal-layer.aw-loot-reveal .aw-reveal-head h2 { margin: 4px 0 0; font-size: 26px; font-weight: 950; color: #f2f7ff; }
.aw-battle.aw-hide-cursor, .aw-battle.aw-hide-cursor * { cursor: none !important; }
.aw-modal-layer.aw-loot-reveal { display: flex; align-items: center; justify-content: center; }
.aw-modal-layer.aw-loot-reveal .aw-chest-opening, .aw-modal-layer.aw-loot-reveal .aw-loot-summary { margin: auto; }
.aw-modal-layer.aw-loot-reveal .aw-chest-opening-stage .aw-chest-fx { position: absolute; inset: 0; width: 100%; height: 100%; }
.aw-modal-layer.aw-loot-reveal .aw-chest-opening-stage .aw-chest-fx canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.aw-level-orb { position: relative; margin-top: 10px; padding: 14px 16px 12px 64px; border: 1px solid rgba(111, 232, 168, .3); border-radius: 14px; background: linear-gradient(150deg, rgba(16, 34, 26, .82), rgba(9, 16, 14, .85)); }
.aw-level-orb .aw-level-ring { position: absolute; left: 12px; top: 50%; width: 40px; height: 40px; transform: translateY(-50%); border-radius: 50%; background: conic-gradient(rgba(111, 232, 168, .95) calc(var(--aw-lv-pct, 0) * 1%), rgba(111, 232, 168, .16) 0); -webkit-mask: radial-gradient(circle, transparent 0 11px, #000 12px); mask: radial-gradient(circle, transparent 0 11px, #000 12px); }
.aw-level-orb span { display: block; font-size: 10px; font-weight: 900; letter-spacing: .2em; color: #8fceaa; text-transform: uppercase; }
.aw-level-orb strong { display: block; font-size: 26px; font-weight: 950; color: #eafff3; line-height: 1.1; }
.aw-level-orb small { display: block; margin-top: 2px; font-size: 11px; color: #9fc9b0; }
.aw-level-orb b { display: block; margin-top: 3px; font-size: 10.5px; font-weight: 700; color: #6f9a82; }
.aw-result-level { margin-top: 10px; display: inline-flex; flex-direction: column; gap: 4px; align-items: center; padding: 9px 18px; border: 1px solid rgba(111, 232, 168, .35); border-radius: 12px; background: rgba(16, 34, 26, .6); }
.aw-result-level span { font-size: 13px; font-weight: 850; color: #a8e8c4; }
.aw-growth-panel { position: relative; padding: 16px 16px 14px; border: 1px solid rgba(111, 232, 168, .28); border-radius: 16px; background: linear-gradient(155deg, rgba(14, 30, 24, .9), rgba(9, 14, 22, .92)); overflow: hidden; }
.aw-growth-panel::before { content: ""; position: absolute; right: -50px; top: -60px; width: 190px; height: 190px; border-radius: 50%; background: radial-gradient(circle, rgba(111, 232, 168, .14), transparent 65%); pointer-events: none; }
.aw-growth-head { display: flex; align-items: stretch; gap: 12px; }
.aw-growth-power { flex: 1; min-width: 0; }
.aw-growth-power span { display: block; font-size: 10px; font-weight: 900; letter-spacing: .22em; color: #8fceaa; text-transform: uppercase; }
.aw-growth-power strong { display: block; font-size: 30px; font-weight: 950; color: #f2fff7; line-height: 1.12; text-shadow: 0 0 16px rgba(111, 232, 168, .3); }
.aw-growth-power small { display: block; margin-top: 2px; font-size: 10.5px; color: #6f9a82; }
.aw-growth-level { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 86px; padding: 8px 12px; border: 1px solid rgba(255, 212, 94, .45); border-radius: 13px; background: linear-gradient(160deg, rgba(58, 44, 12, .8), rgba(26, 20, 8, .85)); }
.aw-growth-level-glow { position: absolute; inset: 0; border-radius: 13px; box-shadow: inset 0 0 18px rgba(255, 212, 94, .18); animation: awLvGlow 2.4s ease-in-out infinite; pointer-events: none; }
.aw-growth-level span { font-size: 10px; font-weight: 900; letter-spacing: .2em; color: #d9b45e; text-transform: uppercase; }
.aw-growth-level strong { font-size: 27px; font-weight: 1000; color: #ffe9ad; text-shadow: 0 0 14px rgba(255, 212, 94, .55); line-height: 1.05; }
.aw-xp-gauge { margin-top: 12px; }
.aw-xp-gauge-track { position: relative; height: 16px; border-radius: 999px; border: 1px solid rgba(111, 232, 168, .3); background: rgba(7, 13, 11, .85); overflow: visible; }
.aw-xp-gauge-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; min-width: 6px; background: linear-gradient(90deg, #2fa06d, #6fe8a8 70%, #c2ffdf); box-shadow: 0 0 14px rgba(111, 232, 168, .45); overflow: hidden; transition: width .5s cubic-bezier(.22, 1, .36, 1); }
.aw-xp-gauge-shine { position: absolute; top: 0; bottom: 0; width: 34%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent); animation: awXpShine 2.2s ease-in-out infinite; }
.aw-xp-gauge-spark { position: absolute; top: 50%; width: 10px; height: 10px; margin-left: -5px; transform: translateY(-50%); border-radius: 50%; background: #eafff3; box-shadow: 0 0 12px rgba(111, 232, 168, .95), 0 0 26px rgba(111, 232, 168, .5); animation: awXpSpark 1.4s ease-in-out infinite; }
.aw-xp-gauge-meta { display: flex; justify-content: space-between; margin-top: 6px; }
.aw-xp-gauge-meta span { font-size: 12px; font-weight: 850; color: #b9e6cc; font-variant-numeric: tabular-nums; }
.aw-xp-gauge-meta b { font-size: 10.5px; font-weight: 700; color: #6f9a82; }
.aw-growth-bonus { display: flex; gap: 7px; margin-top: 10px; }
.aw-growth-bonus i { flex: 1; text-align: center; padding: 6px 8px; border-radius: 9px; border: 1px solid rgba(111, 232, 168, .26); background: rgba(17, 34, 27, .6); font-size: 11.5px; font-weight: 850; font-style: normal; color: #a8e8c4; }
@keyframes awXpShine { 0% { left: -36%; } 60%, 100% { left: 104%; } }
@keyframes awXpSpark { 0%, 100% { opacity: .75; transform: translateY(-50%) scale(.9); } 50% { opacity: 1; transform: translateY(-50%) scale(1.15); } }
@keyframes awLvGlow { 0%, 100% { box-shadow: inset 0 0 14px rgba(255, 212, 94, .14); } 50% { box-shadow: inset 0 0 24px rgba(255, 212, 94, .3); } }
#aw-levelup-fx { position: fixed; inset: 0; z-index: 100001; pointer-events: none; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 50%, rgba(255, 208, 94, .14), rgba(4, 8, 16, 0) 58%); animation: awLvUpDim 2.8s ease forwards; }
.aw-levelup-core { position: relative; width: 0; height: 0; --awc: 255, 208, 94; }
.aw-levelup-core em { position: absolute; left: -260px; top: -260px; width: 520px; height: 520px; border-radius: 50%; background: repeating-conic-gradient(rgba(var(--awc), .85) 0 5deg, transparent 5deg 24deg); -webkit-mask: radial-gradient(circle, transparent 0 15%, #000 27% 54%, transparent 70%); mask: radial-gradient(circle, transparent 0 15%, #000 27% 54%, transparent 70%); opacity: 0; mix-blend-mode: screen; animation: awKoRays 1.4s cubic-bezier(.16, .84, .3, 1) forwards; }
.aw-levelup-core em.r2 { animation-delay: .12s; animation-duration: 1.7s; transform: rotate(15deg); background: repeating-conic-gradient(rgba(255, 255, 255, .5) 0 3deg, transparent 3deg 30deg); }
.aw-levelup-core b { position: absolute; left: -26px; top: -26px; width: 52px; height: 52px; border: 5px solid rgba(var(--awc), .95); border-radius: 50%; opacity: 0; box-shadow: 0 0 30px rgba(var(--awc), .7), inset 0 0 20px rgba(var(--awc), .4); animation: awKoRing 1.1s cubic-bezier(.16, .84, .44, 1) forwards; }
.aw-levelup-core b.r2 { animation-delay: .16s; animation-duration: 1.3s; border-width: 2px; }
.aw-levelup-core s { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: rgb(var(--awc)); box-shadow: 0 0 12px rgba(var(--awc), .95), 0 0 30px rgba(var(--awc), .55); opacity: 0; transform: rotate(var(--awsA)) translateX(6px); animation: awKoSpark 1.25s cubic-bezier(.2, .8, .3, 1) forwards; animation-delay: calc(var(--awsT) * 40ms); }
.aw-levelup-core strong { position: absolute; left: 0; top: -14px; transform: translate(-50%, -100%); white-space: nowrap; font-size: 64px; font-weight: 1000; font-style: italic; letter-spacing: .07em; color: #fff; -webkit-text-stroke: 2px rgba(60, 38, 6, .45); text-shadow: 0 0 26px rgba(var(--awc), 1), 0 0 80px rgba(var(--awc), .6), 0 4px 0 rgba(0, 0, 0, .55); opacity: 0; animation: awKoText 2.5s cubic-bezier(.18, 1.2, .32, 1) forwards; }
.aw-levelup-core span { position: absolute; left: 0; top: 26px; transform: translate(-50%, 0); white-space: nowrap; font-size: 26px; font-weight: 950; color: #ffe9ad; text-shadow: 0 0 18px rgba(var(--awc), .8), 0 2px 0 rgba(0, 0, 0, .5); opacity: 0; animation: awLvUpSub 2.5s ease forwards; }
@keyframes awLvUpSub { 0% { opacity: 0; transform: translate(-50%, 14px) scale(.9); } 16% { opacity: 1; transform: translate(-50%, 0) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -8px); } }
@keyframes awLvUpDim { 0% { opacity: 0; } 10% { opacity: 1; } 78% { opacity: 1; } 100% { opacity: 0; } }
.aw-guide-btn { display: inline-flex; align-items: center; gap: 7px; margin-left: 14px; padding: 8px 14px; border: 1px solid rgba(111, 232, 168, .35); border-radius: 999px; background: rgba(14, 28, 22, .7); color: #a8e8c4; font-size: 12px; font-weight: 850; cursor: pointer; transition: border-color .15s ease, color .15s ease; }
.aw-guide-btn:hover { border-color: rgba(111, 232, 168, .7); color: #eafff3; }
.aw-guide-btn b { font-weight: 850; }
.aw-guide { width: min(860px, 95vw); max-height: 88vh; display: flex; flex-direction: column; padding: 32px 34px 26px; border: 1px solid rgba(111, 232, 168, .3); border-radius: 20px; background: linear-gradient(165deg, rgba(14, 26, 22, .97), rgba(8, 12, 20, .98)); box-shadow: 0 24px 80px rgba(0, 0, 0, .6); }
.aw-guide-head small { display: block; font-size: 11px; font-weight: 900; letter-spacing: .26em; color: #8fceaa; text-transform: uppercase; }
.aw-guide-head h2 { margin: 5px 0 18px; font-size: 30px; font-weight: 950; color: #f2fff7; }
.aw-guide-scroll { overflow-y: auto; padding-right: 10px; display: flex; flex-direction: column; gap: 14px; scrollbar-color: rgba(111, 232, 168, .4) rgba(10, 16, 14, .6); }
.aw-guide-section { display: flex; gap: 15px; padding: 17px 19px; border: 1px solid rgba(111, 232, 168, .18); border-left: 4px solid rgba(111, 232, 168, .6); border-radius: 14px; background: linear-gradient(160deg, rgba(16, 30, 25, .7), rgba(11, 18, 16, .6)); }
.aw-guide-section i { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: rgba(111, 232, 168, .15); border: 1px solid rgba(111, 232, 168, .4); color: #9dffca; font-size: 18px; font-weight: 950; font-style: normal; box-shadow: 0 0 14px rgba(111, 232, 168, .15); }
.aw-guide-section h3 { margin: 2px 0 7px; font-size: 18px; font-weight: 950; color: #eafff3; letter-spacing: .01em; }
.aw-guide-section p { margin: 0; font-size: 14.5px; line-height: 1.75; color: #c3ddd0; white-space: pre-line; }
.aw-guide > .aw-primary { margin-top: 16px; align-self: center; min-width: 180px; }

.aw-guide-section:nth-child(2) { border-left-color: rgba(255, 122, 138, .65); } .aw-guide-section:nth-child(2) i { background: rgba(255, 122, 138, .14); border-color: rgba(255, 122, 138, .4); color: #ffb1bb; box-shadow: 0 0 14px rgba(255, 122, 138, .15); }
.aw-guide-section:nth-child(3) { border-left-color: rgba(255, 208, 94, .65); } .aw-guide-section:nth-child(3) i { background: rgba(255, 208, 94, .13); border-color: rgba(255, 208, 94, .42); color: #ffe9ad; box-shadow: 0 0 14px rgba(255, 208, 94, .15); }
.aw-guide-section:nth-child(4) { border-left-color: rgba(143, 216, 255, .6); } .aw-guide-section:nth-child(4) i { background: rgba(143, 216, 255, .13); border-color: rgba(143, 216, 255, .4); color: #c9ecff; box-shadow: 0 0 14px rgba(143, 216, 255, .14); }
.aw-guide-section:nth-child(5) { border-left-color: rgba(201, 168, 255, .62); } .aw-guide-section:nth-child(5) i { background: rgba(201, 168, 255, .13); border-color: rgba(201, 168, 255, .4); color: #e3d2ff; box-shadow: 0 0 14px rgba(201, 168, 255, .15); }
.aw-guide-section:nth-child(6) { border-left-color: rgba(255, 140, 205, .6); } .aw-guide-section:nth-child(6) i { background: rgba(255, 140, 205, .12); border-color: rgba(255, 140, 205, .4); color: #ffc9e5; box-shadow: 0 0 14px rgba(255, 140, 205, .14); }
.aw-guide-section:nth-child(7) { border-left-color: rgba(255, 176, 102, .62); } .aw-guide-section:nth-child(7) i { background: rgba(255, 176, 102, .13); border-color: rgba(255, 176, 102, .42); color: #ffd9b0; box-shadow: 0 0 14px rgba(255, 176, 102, .15); }
.aw-guide-section:nth-child(8) { border-left-color: rgba(122, 226, 255, .6); } .aw-guide-section:nth-child(8) i { background: rgba(122, 226, 255, .12); border-color: rgba(122, 226, 255, .4); color: #c5f1ff; box-shadow: 0 0 14px rgba(122, 226, 255, .14); }
.aw-lobby .aw-topbar .aw-account { display: none; }
.aw-account-line { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 8px; }
.aw-account-line span { font-size: 11.5px; font-weight: 850; letter-spacing: .1em; color: #8a9db8; }
.aw-account-line strong { font-size: 15px; font-weight: 950; color: #eaf6ff; text-shadow: 0 0 12px rgba(111, 232, 168, .3); }
.aw-account-line i { width: 1px; height: 14px; background: rgba(140, 165, 195, .35); }
.aw-lobby .aw-launch-panel { display: flex; flex-direction: column; align-items: center; text-align: center; }
.aw-guide-chip { display: inline-flex; align-items: center; gap: 8px; align-self: center; margin-bottom: 14px; padding: 8px 18px; border: 1px solid rgba(111, 232, 168, .38); border-radius: 999px; background: linear-gradient(160deg, rgba(18, 38, 30, .85), rgba(10, 18, 15, .9)); color: #c2ffdf; font-size: 12.5px; font-weight: 900; letter-spacing: .06em; cursor: pointer; box-shadow: 0 0 14px rgba(111, 232, 168, .12), inset 0 1px 0 rgba(255, 255, 255, .06); transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease; }
.aw-guide-chip i { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; background: rgba(111, 232, 168, .2); border: 1px solid rgba(111, 232, 168, .5); font-size: 12px; font-style: normal; color: #9dffca; }
.aw-guide-chip:hover { transform: translateY(-1px); border-color: rgba(111, 232, 168, .7); box-shadow: 0 0 22px rgba(111, 232, 168, .28), inset 0 1px 0 rgba(255, 255, 255, .08); }
.aw-lobby .aw-pb { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 14px 34px 15px; border: 1px solid rgba(255, 208, 94, .26); border-radius: 16px; background: radial-gradient(circle at 50% 0%, rgba(255, 208, 94, .1), transparent 70%), rgba(13, 18, 30, .55); }
.aw-lobby .aw-pb::before, .aw-lobby .aw-pb::after { content: ""; position: absolute; top: 50%; width: 26px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 208, 94, .55)); }
.aw-lobby .aw-pb::before { left: -34px; }
.aw-lobby .aw-pb::after { right: -34px; transform: scaleX(-1); }
.aw-lobby .aw-pb span { font-size: 11px; font-weight: 900; letter-spacing: .3em; text-indent: .3em; color: #d9b45e; text-transform: uppercase; }
.aw-lobby .aw-pb strong { display: flex; align-items: baseline; gap: 5px; line-height: 1; }
.aw-lobby .aw-pb strong em { font-style: normal; font-size: 52px; font-weight: 1000; color: #fff6dd; text-shadow: 0 0 24px rgba(255, 208, 94, .55), 0 3px 0 rgba(0, 0, 0, .45); letter-spacing: .01em; }
.aw-lobby .aw-pb strong i { font-style: normal; font-size: 19px; font-weight: 900; color: #ffd45e; }
.aw-lobby .aw-pb small { font-size: 12px; color: #93a5c0; }
.aw-loadout-sector { margin-top: 14px; }
.aw-sector-head { display: flex; align-items: baseline; justify-content: center; gap: 9px; margin: 0 0 9px; }
.aw-sector-head span { font-size: 10px; font-weight: 900; letter-spacing: .18em; color: #9aa9c6; text-transform: uppercase; }
.aw-sector-head small { font-size: 11px; font-weight: 750; color: #66788f; }
.aw-sector-head b { font-size: 11.5px; font-weight: 900; color: #b9c6dd; }
.aw-sector-head b::before { content: "·"; margin-right: 9px; color: #66788f; }
.aw-loadout-sector-frames .aw-sector-head span { color: #ffd45e; }
.aw-loadout-sector-frames .aw-sector-head b { color: #e8c96f; }
.aw-lobby .aw-frame-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 168px)); gap: 12px; justify-content: center; }
.aw-lobby .aw-loadout-sector .aw-slot-empty span { text-align: center; }
.aw-lobby .aw-loadout-sector .aw-loadout-grid { margin-top: 0; }
.aw-slot-card.aw-frame-socket { position: relative; border-style: dashed; border-color: rgba(255, 208, 94, .45); background: linear-gradient(160deg, rgba(46, 36, 12, .5), rgba(20, 16, 8, .55)); }
.aw-slot-card.aw-frame-socket:not(.aw-slot-empty) { border-style: solid; box-shadow: 0 0 16px rgba(255, 208, 94, .18); }
.aw-lobby .aw-slot-card.aw-frame-socket.aw-slot-empty { min-height: 118px; border: 1px dashed rgba(255, 208, 94, .32); background: rgba(46, 36, 12, .22); color: #c2a659; box-shadow: none; }
.aw-lobby .aw-slot-card.aw-frame-socket.aw-slot-empty i { border-color: rgba(255, 208, 94, .4); color: #ffd45e; }
.aw-rank-head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.aw-replay-controls .aw-rp-export { margin-left: 10px; white-space: nowrap; }
.aw-player-layer { z-index: 140800; }
.aw-player-modal { width: min(680px, 94vw); max-height: min(88vh, 900px); overflow-y: auto; border-radius: 22px; border: 1px solid rgba(232, 196, 106, .3); background: linear-gradient(168deg, rgba(17, 24, 42, .98), rgba(8, 12, 24, .99)); box-shadow: 0 28px 90px rgba(0, 0, 0, .65), 0 0 52px rgba(232, 196, 106, .09), inset 0 1px 0 rgba(255, 255, 255, .05); padding: 22px 24px 20px; display: flex; flex-direction: column; gap: 14px; }
.aw-pp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.aw-pp-id { display: flex; align-items: center; gap: 12px; }
.aw-pp-id small { font-size: 11px; font-weight: 850; letter-spacing: .24em; text-transform: uppercase; color: #b9a25e; }
.aw-pp-id h2 { margin: 2px 0 0; font-size: 22px; font-weight: 950; color: #f4f8ff; letter-spacing: .01em; }
.aw-pp-rank { display: grid; place-items: center; min-width: 54px; height: 54px; padding: 0 10px; border-radius: 16px; font-style: normal; font-size: 16px; font-weight: 950; color: #ffe9ad; background: linear-gradient(160deg, rgba(232, 196, 106, .22), rgba(232, 196, 106, .06)); border: 1px solid rgba(232, 196, 106, .4); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.aw-pp-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.aw-pp-hero > div { border-radius: 16px; padding: 14px 16px; border: 1px solid rgba(255, 255, 255, .07); background: linear-gradient(170deg, rgba(24, 33, 56, .9), rgba(12, 17, 32, .95)); display: flex; flex-direction: column; gap: 3px; }
.aw-pp-hero span { font-size: 11px; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; color: #8fa5c0; }
.aw-pp-hero strong { font-size: 26px; font-weight: 950; color: #fff; line-height: 1.1; }
.aw-pp-best strong { color: #ffd968; }
.aw-pp-best strong i { font-style: normal; font-size: 14px; font-weight: 850; color: #b9a25e; margin-left: 3px; }
.aw-pp-power small { font-size: 12px; font-weight: 800; color: #7ee0a8; }
.aw-pp-tiles, .aw-pp-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.aw-pp-tile { border-radius: 12px; padding: 9px 10px; border: 1px solid rgba(255, 255, 255, .06); background: rgba(13, 19, 34, .85); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.aw-pp-tile span { font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; color: #7f93ad; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aw-pp-tile strong { font-size: 15px; font-weight: 950; color: #eef4ff; white-space: nowrap; }
.aw-pp-tile strong i { font-style: normal; font-size: 11px; color: #8fa5c0; margin-left: 2px; }
.aw-pp-metrics .aw-pp-tile { background: rgba(10, 18, 30, .92); border-color: rgba(91, 224, 230, .16); }
.aw-pp-metrics .aw-pp-tile strong { color: #8ff0f4; }
.aw-pp-chests { display: flex; gap: 6px; flex-wrap: wrap; }
.aw-pp-chest { font-style: normal; font-size: 11px; font-weight: 850; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(var(--rarity-rgb, 146, 160, 175), .4); color: rgb(var(--rarity-rgb, 200, 210, 220)); background: rgba(var(--rarity-rgb, 146, 160, 175), .1); }
.aw-pp-section-head { display: flex; align-items: baseline; gap: 8px; }
.aw-pp-section-head small { font-size: 10px; font-weight: 850; letter-spacing: .2em; text-transform: uppercase; color: #7f93ad; }
.aw-pp-section-head h3 { margin: 0; font-size: 15px; font-weight: 950; color: #f2f7ff; }
.aw-pp-section-head span { margin-left: auto; font-size: 12px; font-weight: 900; color: #b9a25e; }
.aw-pp-gear-wrap { display: flex; flex-direction: column; gap: 10px; }
.aw-pp-gear-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.aw-pp-gear { position: relative; border-radius: 14px; padding: 10px 10px 9px; border: 1px solid rgba(var(--rarity-rgb, 146, 160, 175), .35); background: linear-gradient(172deg, rgba(var(--rarity-rgb, 146, 160, 175), .12), rgba(11, 16, 30, .95) 58%); display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; min-width: 0; }
.aw-pp-gear.is-frame { border-style: dashed; border-color: rgba(232, 196, 106, .5); }
.aw-pp-gear canvas { width: 52px; height: 52px; image-rendering: pixelated; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .45)); }
.aw-pp-gear strong { font-size: 12px; font-weight: 950; color: #f0f5ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.aw-pp-gear small { font-size: 10px; font-weight: 850; color: rgb(var(--rarity-rgb, 170, 182, 196)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.aw-pp-gear em { font-style: normal; font-size: 10px; font-weight: 800; color: #9fb2cc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.aw-pp-empty { grid-column: 1 / -1; padding: 18px; text-align: center; font-size: 12px; font-weight: 800; color: #7f93ad; border: 1px dashed rgba(255, 255, 255, .12); border-radius: 12px; }
.aw-pp-foot { display: flex; justify-content: flex-end; gap: 8px; padding-top: 2px; }
.aw-player-modal { text-align: center; }
.aw-pp-head { text-align: left; }
.aw-pp-hero > div, .aw-pp-tile, .aw-pp-gear { align-items: center; text-align: center; }
.aw-pp-chests, .aw-pp-foot { justify-content: center; }
.aw-pp-section-head { justify-content: center; }
.aw-pp-section-head span { margin-left: 6px; }
.aw-replay-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .08); background: linear-gradient(170deg, rgba(14, 20, 36, .92), rgba(8, 12, 24, .95)); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.aw-replay-controls .aw-replay-seek { flex: 1; min-width: 160px; }
.aw-rp-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.aw-rp-video { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 11px; border: 1px solid rgba(232, 196, 106, .55); background: linear-gradient(165deg, rgba(232, 196, 106, .24), rgba(232, 196, 106, .08)); color: #ffe9ad; font-size: 12.5px; font-weight: 950; letter-spacing: .02em; cursor: pointer; white-space: nowrap; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 4px 14px rgba(0, 0, 0, .3); transition: transform .12s ease, box-shadow .12s ease; }
.aw-rp-video:hover:not(:disabled) { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 6px 20px rgba(232, 196, 106, .22); }
.aw-rp-video:disabled { opacity: .55; cursor: default; }
.aw-rp-video i { width: 9px; height: 9px; border-radius: 50%; background: #ff5a6e; box-shadow: 0 0 8px rgba(255, 90, 110, .9); animation: awRecPulse 1.6s ease-in-out infinite; }
.aw-rp-video:disabled i { animation-duration: .7s; }
@keyframes awRecPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.aw-rp-file { padding: 9px 13px; border-radius: 11px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(20, 28, 48, .85); color: #b9c7dc; font-size: 12px; font-weight: 850; cursor: pointer; white-space: nowrap; transition: border-color .12s ease, color .12s ease; }
.aw-rp-file:hover:not(:disabled) { border-color: rgba(139, 224, 230, .5); color: #d9f4f6; }
.aw-rp-file:disabled { opacity: .55; cursor: default; }
.aw-rec-ov { position: fixed; right: 22px; top: 18px; z-index: 141000; }
.aw-rec-box { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 13px; border: 1px solid rgba(255, 90, 110, .45); background: linear-gradient(168deg, rgba(30, 12, 18, .95), rgba(12, 6, 10, .97)); box-shadow: 0 12px 40px rgba(0, 0, 0, .5), 0 0 24px rgba(255, 90, 110, .16); }
.aw-rec-box i { width: 11px; height: 11px; border-radius: 50%; background: #ff5a6e; box-shadow: 0 0 10px rgba(255, 90, 110, .95); animation: awRecPulse 1.1s ease-in-out infinite; }
.aw-rec-box b { font-size: 15px; font-weight: 950; color: #ffe1e6; min-width: 44px; text-align: right; }
.aw-rec-box span { font-size: 11.5px; font-weight: 850; color: #c99aa4; }
.aw-rec-box button { padding: 7px 12px; border-radius: 10px; border: 1px solid rgba(255, 90, 110, .55); background: rgba(70, 18, 24, .8); color: #ffb0ba; font-size: 11.5px; font-weight: 900; cursor: pointer; white-space: nowrap; }
.aw-rec-box button:hover { background: rgba(96, 24, 32, .9); color: #ffd4da; }
.aw-replay-controls.is-recording .aw-replay-seek input, .aw-replay-controls.is-recording .aw-replay-speeds button, .aw-replay-controls.is-recording [data-aw-rp-play], .aw-replay-controls.is-recording .aw-rp-file { pointer-events: none; opacity: .45; }
.aw-pick-note .aw-bulk-synth-btn { margin-left: auto; white-space: nowrap; }
.aw-bulk-modal { width: min(460px, 92vw); height: auto; max-height: min(880px, 100%); }
.aw-bulk-foot { flex-wrap: wrap; }
.aw-bulk-foot .aw-work-summary { flex-basis: 100%; white-space: normal; overflow: visible; text-overflow: clip; min-height: 17px; }
.aw-bulk-foot .aw-secondary, .aw-bulk-foot .aw-primary { flex: 1; min-width: 0; }
.aw-bulk-chain-label { margin: 14px 22px 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; color: #8fa3c0; }
.aw-bulk-chain { margin: 0 22px; padding: 11px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; border: 1px solid rgba(140, 120, 255, .2); border-radius: 12px; background: rgba(20, 12, 44, .55); font-size: 12.5px; font-weight: 850; }
.aw-bulk-chain i { font-style: normal; color: rgba(217, 201, 242, .4); font-weight: 700; }
.aw-bulk-chain .r-common { color: #d6d9df; }
.aw-bulk-chain .r-rare { color: #a875ff; }
.aw-bulk-chain .r-epic { color: #ef55d8; }
.aw-bulk-chain .r-mythic { color: #ff9d45; }
.aw-bulk-chain .r-primal { color: #8ef7c9; }
.aw-bulk-chain .r-cosmic { color: #79c4ff; }
.aw-bulk-desc { margin: 14px 22px 10px; font-size: 12.5px; line-height: 1.55; color: #9fb2cc; }
.aw-bulk-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 22px 18px; }
.aw-bulk-tags i { font-style: normal; font-size: 10.5px; font-weight: 850; color: #8fa6c4; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(128, 153, 186, .22); background: rgba(128, 153, 186, .07); }
.aw-bulk-label { margin: 0 22px 8px; font-size: 10px; font-weight: 900; letter-spacing: .2em; color: #7f93ad; text-transform: uppercase; }
.aw-bulk-targets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 22px 18px; }
.aw-bulk-target { position: relative; display: flex; flex-direction: column; align-items: center; padding: 15px 6px 13px; border-radius: 12px; border: 1px solid rgba(var(--rarity-rgb, 146, 160, 175), .3); background: linear-gradient(170deg, rgba(var(--rarity-rgb, 146, 160, 175), .09), rgba(11, 16, 30, .95) 62%); cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
.aw-bulk-target::before { content: ""; width: 26px; height: 3px; margin-bottom: 9px; border-radius: 2px; background: rgb(var(--rarity-rgb, 146, 160, 175)); opacity: .4; transition: opacity .12s ease, box-shadow .12s ease; }
.aw-bulk-target strong { font-size: 14px; font-weight: 950; color: rgb(var(--rarity-rgb, 220, 226, 235)); }
.aw-bulk-target:hover { transform: translateY(-1px); border-color: rgba(var(--rarity-rgb), .6); }
.aw-bulk-target.is-active { border-color: rgba(var(--rarity-rgb), .85); box-shadow: 0 0 20px rgba(var(--rarity-rgb), .3), inset 0 0 16px rgba(var(--rarity-rgb), .1); transform: translateY(-1px); }
.aw-bulk-target.is-active::before { opacity: 1; box-shadow: 0 0 10px rgba(var(--rarity-rgb), .8); }
.aw-bulk-target.is-active::after { content: "✓"; position: absolute; top: 6px; right: 9px; font-size: 11px; font-weight: 950; color: rgb(var(--rarity-rgb)); }
.aw-mat-sweep { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 0 20px 10px; }
.aw-mat-sweep > span { margin-right: 3px; font-size: 10px; font-weight: 900; letter-spacing: .14em; color: #7f93ad; text-transform: uppercase; }
.aw-mat-sweep-chip { min-height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(var(--rarity-rgb, 146, 160, 175), .4); background: rgba(var(--rarity-rgb, 146, 160, 175), .08); color: rgb(var(--rarity-rgb, 206, 216, 228)); font: 850 11.5px/1 var(--aw-font); cursor: pointer; transition: box-shadow .12s ease, background .12s ease; }
.aw-mat-sweep-chip:hover { background: rgba(var(--rarity-rgb, 146, 160, 175), .17); box-shadow: 0 0 12px rgba(var(--rarity-rgb, 146, 160, 175), .3); }
.aw-mat-sweep-chip.is-all { --rarity-rgb: 111, 232, 192; }
.aw-mat-sweep-clear { min-height: 28px; margin-left: auto; padding: 0 11px; border-radius: 999px; border: 1px solid rgba(128, 153, 186, .25); background: transparent; color: #8fa6c4; font: 850 11.5px/1 var(--aw-font); cursor: pointer; transition: color .12s ease, border-color .12s ease; }
.aw-mat-sweep-clear:hover { color: #ffb3c1; border-color: rgba(255, 145, 164, .4); }

.aw-card-badge { position: relative; display: inline-flex; align-items: center; gap: 7px; margin-left: 10px; padding: 7px 13px 7px 11px; border-radius: 999px; border: 1px solid rgba(255, 214, 110, .55); background: linear-gradient(160deg, rgba(64, 44, 10, .92), rgba(24, 16, 6, .95)); color: #ffe9ad; font-weight: 900; font-size: 13px; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.aw-card-badge i { width: 14px; height: 14px; border-radius: 3px; transform: rotate(45deg); background: linear-gradient(135deg, #ffe066, #ff9d45); box-shadow: 0 0 8px rgba(255, 200, 90, .8); }
.aw-card-badge:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(255, 190, 70, .3); }
.aw-card-badge.is-pulsing { animation: aw-card-badge-pulse 1.6s ease-in-out infinite; }
@keyframes aw-card-badge-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 205, 90, .45); } 50% { box-shadow: 0 0 0 9px rgba(255, 205, 90, 0); } }

.aw-card-layer { z-index: 140800; }
.aw-card-layer.is-mythic-reveal { animation: aw-card-flash .5s ease-out; }
@keyframes aw-card-flash { 0% { background: rgba(255, 220, 140, .28); } 100% { background: rgba(2, 4, 9, 0); } }
.aw-result-cores strong { color: #8ef7c9; text-shadow: 0 0 14px rgba(142, 247, 201, .45); }
.aw-core-panel { position: relative; display: flex; align-items: stretch; gap: 12px; margin-top: 10px; padding: 14px 16px; border: 1px solid rgba(111, 232, 168, .28); border-radius: 16px; background: linear-gradient(155deg, rgba(14, 30, 24, .9), rgba(9, 14, 22, .92)); overflow: hidden; }
.aw-core-panel::before { content: ""; position: absolute; left: -50px; bottom: -70px; width: 190px; height: 190px; border-radius: 50%; background: radial-gradient(circle, rgba(111, 232, 168, .12), transparent 65%); pointer-events: none; }
.aw-core-panel-main { flex: 1; min-width: 0; }
.aw-core-panel-main span { display: block; font-size: 10px; font-weight: 900; letter-spacing: .22em; color: #8fceaa; text-transform: uppercase; }
.aw-core-panel-main strong { display: block; font-size: 30px; font-weight: 950; color: #f2fff7; line-height: 1.12; text-shadow: 0 0 16px rgba(111, 232, 168, .3); }
.aw-core-panel-main small { display: block; margin-top: 2px; font-size: 10.5px; color: #6f9a82; }
.aw-core-panel-boost { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 96px; padding: 8px 14px; border: 1px solid rgba(111, 232, 168, .45); border-radius: 13px; background: linear-gradient(160deg, rgba(15, 46, 33, .82), rgba(8, 22, 16, .88)); }
.aw-core-panel-glow { position: absolute; inset: 0; border-radius: 13px; box-shadow: inset 0 0 18px rgba(111, 232, 168, .2); animation: awLvGlow 2.4s ease-in-out infinite; pointer-events: none; }
.aw-core-panel-boost span { font-size: 10px; font-weight: 900; letter-spacing: .2em; color: #7fd9a8; text-transform: uppercase; }
.aw-core-panel-boost strong { font-size: 24px; font-weight: 1000; color: #b9ffd9; text-shadow: 0 0 14px rgba(111, 232, 168, .55); line-height: 1.05; }
.aw-card-badge[hidden] { display: none; }
.aw-guide-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.aw-guide-tab { min-height: 32px; padding: 0 14px; border: 1px solid rgba(111, 232, 168, .22); border-radius: 999px; background: rgba(111, 232, 168, .05); color: #9dc8b0; font: 850 12.5px/1 var(--aw-font); cursor: pointer; transition: background .14s ease, color .14s ease, border-color .14s ease; }
.aw-guide-tab:hover { background: rgba(111, 232, 168, .12); color: #d9ffe9; }
.aw-guide-tab.is-active { border-color: rgba(111, 232, 168, .7); background: rgba(111, 232, 168, .16); color: #eafff3; box-shadow: 0 0 14px rgba(111, 232, 168, .2); }
.aw-guide-section[hidden] { display: none; }
.aw-effects-card.aw-final-card { position: absolute; padding: 11px 13px 9px; border: 1px solid rgba(99, 230, 255, .34); border-radius: 14px; background: radial-gradient(150px 95px at 88% -12%, rgba(99, 230, 255, .16), transparent 62%), radial-gradient(130px 85px at -6% 112%, rgba(148, 120, 255, .14), transparent 62%), linear-gradient(168deg, rgba(10, 20, 34, .97), rgba(6, 10, 20, .97)); box-shadow: inset 0 1px rgba(255, 255, 255, .06), 0 0 24px rgba(99, 230, 255, .1), 0 14px 36px rgba(0, 0, 0, .38); clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 13px 100%, 0 calc(100% - 13px)); }
.aw-final-card::before { content: ""; position: absolute; top: 0; left: 8%; right: 34%; height: 2px; background: linear-gradient(90deg, transparent, rgba(99, 230, 255, .95), transparent); }
.aw-final-card.is-pulse::after { content: ""; position: absolute; inset: 0; border-radius: 14px; box-shadow: inset 0 0 26px rgba(99, 230, 255, .35); animation: awFinalPulse .6s ease-out forwards; pointer-events: none; }
@keyframes awFinalPulse { 0% { opacity: 1; } 100% { opacity: 0; } }
.aw-final-title { display: flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 900; letter-spacing: .22em; color: #7fd4e8; text-transform: uppercase; }
.aw-px-bolt { position: relative; width: 12px; height: 16px; }
.aw-px-bolt::before { content: ""; position: absolute; left: 0; top: 0; width: 2px; height: 2px; background: transparent; box-shadow: 6px 0 #ffe9a8, 4px 2px #ffd45e, 6px 2px #ffd45e, 4px 4px #ffd45e, 2px 6px #ffd45e, 4px 6px #ffe9a8, 6px 6px #ffd45e, 8px 6px #ffd45e, 6px 8px #ffd45e, 4px 10px #f5b93e, 6px 10px #ffd45e, 4px 12px #f5b93e, 2px 14px #f5b93e; filter: drop-shadow(0 0 4px rgba(255, 212, 94, .7)); }
.aw-final-hero { margin-top: 5px; }
.aw-final-hero span { display: block; font-size: 10.5px; font-weight: 850; letter-spacing: .06em; color: #8fb0c9; }
.aw-final-hero strong { display: block; font-size: 24px; font-weight: 1000; line-height: 1.08; background: linear-gradient(180deg, #ffffff 8%, #a5f0ff 66%, #63e6ff); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 11px rgba(99, 230, 255, .5)); font-variant-numeric: tabular-nums; }
.aw-final-chain { display: flex; align-items: stretch; gap: 3px; margin-top: 7px; }
.aw-final-chain em { display: flex; flex: 1; min-width: 0; flex-direction: column; align-items: center; padding: 3px 1px 2px; border: 1px solid rgba(var(--src-rgb), .42); border-radius: 8px; background: linear-gradient(172deg, rgba(var(--src-rgb), .16), rgba(8, 12, 22, .85) 72%); font-style: normal; }
.aw-final-chain em span { max-width: 100%; overflow: hidden; font-size: 9px; font-weight: 900; letter-spacing: .06em; color: rgb(var(--src-rgb)); text-overflow: ellipsis; white-space: nowrap; }
.aw-final-chain em b { max-width: 100%; overflow: hidden; font-size: 11.5px; font-weight: 950; color: #f4fcff; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.aw-final-chain > i { align-self: center; color: #5d7890; font-size: 11px; font-weight: 900; font-style: normal; }
.aw-final-chain .src-gear { --src-rgb: 168, 140, 255; }
.aw-final-chain .src-cards { --src-rgb: 255, 175, 95; }
.aw-final-chain .src-cores { --src-rgb: 111, 232, 168; }
.aw-final-rows { display: flex; flex: 1; flex-direction: column; margin-top: 7px; min-height: 0; overflow: auto; scrollbar-width: thin; scrollbar-color: rgba(99, 230, 255, .3) transparent; }
.aw-final-rows .fxr { display: flex; align-items: center; gap: 7px; min-height: 23px; padding: 2px 1px; border-bottom: 1px solid rgba(120, 150, 190, .1); }
.aw-final-rows .fxr:last-child { border-bottom: none; }
.fxr i { flex: none; width: 3px; height: 12px; border-radius: 2px; background: rgb(var(--fx-rgb, 116, 232, 218)); box-shadow: 0 0 7px rgba(var(--fx-rgb, 116, 232, 218), .75); }
.fxr span { flex: 1; overflow: hidden; font-size: 11px; font-weight: 850; color: #93a9c2; text-overflow: ellipsis; white-space: nowrap; }
.fxr b { font-size: 12.5px; font-weight: 950; color: #eefcff; font-variant-numeric: tabular-nums; text-shadow: 0 0 9px rgba(var(--fx-rgb, 116, 232, 218), .4); white-space: nowrap; }
.fxr.fx-cancel { --fx-rgb: 99, 230, 255; }
.fxr.fx-crit { --fx-rgb: 255, 205, 110; }
.fxr.fx-spin { --fx-rgb: 190, 150, 255; }
.fxr.fx-receive { --fx-rgb: 111, 232, 168; }
.fxr.fx-delay { --fx-rgb: 130, 180, 255; }
.fxr.fx-bosshp { --fx-rgb: 255, 130, 150; }
.fxr.fx-chest { --fx-rgb: 255, 190, 90; }
.aw-fatigue-badge { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); z-index: 7; display: flex; align-items: center; gap: 7px; padding: 6px 14px; border: 1px solid rgba(255, 92, 130, .55); border-radius: 999px; background: rgba(30, 8, 16, .92); box-shadow: 0 0 18px rgba(255, 92, 130, .35); pointer-events: none; }
.aw-fatigue-badge[hidden] { display: none; }
.aw-fatigue-badge i { width: 8px; height: 8px; border-radius: 50%; background: #ff5c82; box-shadow: 0 0 10px rgba(255, 92, 130, .9); animation: awFatiguePulse 1.1s ease-in-out infinite; }
@keyframes awFatiguePulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.8); } }
.aw-fatigue-badge span { font-size: 12px; font-weight: 950; color: #ffccd7; letter-spacing: .04em; white-space: nowrap; }
.aw-guide-example { margin-top: 10px; padding: 12px 15px; border: 1px solid rgba(99, 230, 255, .28); border-left: 3px solid rgba(99, 230, 255, .8); border-radius: 10px; background: rgba(99, 230, 255, .06); font-size: 13.5px; line-height: 1.7; color: #bfe9f2; white-space: pre-line; font-variant-numeric: tabular-nums; }

.awc-panel { position: relative; width: min(880px, 95vw); padding: 26px 30px 20px; border-radius: 24px; border: 1px solid rgba(140, 160, 200, .26); background: radial-gradient(560px 300px at 50% -8%, rgba(84, 110, 190, .2), transparent 62%), linear-gradient(175deg, rgba(15, 20, 38, .97), rgba(6, 9, 18, .99) 72%); box-shadow: 0 34px 90px rgba(0, 0, 0, .66), inset 0 1px 0 rgba(255, 255, 255, .06); overflow: hidden; }
.awc-fx-host { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.awc-fx-host canvas, .awc-fx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.awc-head { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 18px; animation: awcHead .5s cubic-bezier(.2, .9, .3, 1) both; }
.awc-head small { font-size: 10px; font-weight: 900; letter-spacing: .26em; color: #7d90b5; text-transform: uppercase; }
.awc-head b { font-size: 21px; font-weight: 950; letter-spacing: .02em; color: #f2f6ff; text-shadow: 0 0 18px rgba(120, 160, 255, .35); }
.awc-head span { margin-left: auto; font-size: 12px; font-weight: 850; color: #8fa3c2; letter-spacing: .08em; }
@keyframes awcHead { 0% { opacity: 0; transform: translateY(-14px); } 100% { opacity: 1; transform: translateY(0); } }
.awc-row { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; perspective: 1300px; }
.awc-card { position: relative; height: 292px; cursor: pointer; outline: none; opacity: 0; will-change: transform; animation-name: awcIn, awcFloat; animation-duration: .6s, 3.6s; animation-timing-function: cubic-bezier(.17, .95, .3, 1.14), ease-in-out; animation-delay: calc(var(--awc-i, 0) * .13s), calc(var(--awc-i, 0) * .5s + 1.1s); animation-fill-mode: forwards, none; animation-iteration-count: 1, infinite; animation-direction: normal, alternate; }
@keyframes awcIn { 0% { opacity: 0; transform: translateY(130px) scale(.7); } 62% { opacity: 1; transform: translateY(-12px) scale(1.045); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes awcFloat { 0% { transform: translateY(0); } 100% { transform: translateY(-7px); } }
.awc-flip { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--awc-rx, 0deg)) rotateY(var(--awc-ry, 0deg)); transition: transform .16s ease-out; animation-name: awcFlip; animation-duration: .74s; animation-timing-function: cubic-bezier(.24, .86, .3, 1.04); animation-fill-mode: backwards; animation-delay: calc(var(--awc-i, 0) * .13s + .16s); will-change: transform; }
@keyframes awcFlip { 0% { transform: rotateY(-190deg); } 100% { transform: rotateY(0deg); } }
.awc-face { position: absolute; inset: 0; border-radius: 18px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.awc-back { transform: rotateY(180deg); border: 1px solid rgba(120, 140, 190, .4); background: linear-gradient(150deg, #1a2340 0%, #0b1226 55%, #131b36 100%); }
.awc-back i { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; transform: translate(-50%, -50%) rotate(45deg); border: 2px solid rgba(140, 170, 235, .5); background: linear-gradient(135deg, rgba(94, 130, 210, .3), rgba(20, 30, 60, .3)); box-shadow: 0 0 26px rgba(110, 150, 235, .35), inset 0 0 18px rgba(110, 150, 235, .25); }
.awc-back::after { content: ""; position: absolute; inset: 9px; border-radius: 12px; border: 1px dashed rgba(120, 145, 200, .3); }
.awc-front { display: flex; flex-direction: column; align-items: center; padding: 20px 12px 12px; border: 1px solid rgba(var(--rarity-rgb, 146, 160, 175), .55); background: radial-gradient(150px 110px at 50% 8%, rgba(var(--rarity-rgb, 146, 160, 175), .22), transparent 70%), linear-gradient(180deg, rgba(var(--rarity-rgb, 146, 160, 175), .13), rgba(9, 12, 24, .97) 60%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.awc-front::before { content: ""; position: absolute; inset: 0; background: radial-gradient(190px 190px at var(--awc-mx, 50%) var(--awc-my, 38%), rgba(255, 255, 255, .14), transparent 62%); opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.awc-card:hover .awc-front::before, .awc-card:focus-visible .awc-front::before { opacity: 1; }
.awc-card:hover, .awc-card:focus-visible { z-index: 2; }
.awc-card:hover .awc-flip, .awc-card:focus-visible .awc-flip { box-shadow: 0 22px 48px rgba(var(--rarity-rgb, 146, 160, 175), .3); }
.awc-card:focus-visible .awc-front { border-color: rgba(255, 255, 255, .75); }
.awc-shine { position: absolute; top: -30%; bottom: -30%; width: 46px; left: -70px; transform: rotate(18deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2), transparent); animation: awcShine 4.2s ease-in-out calc(var(--awc-i, 0) * .9s + 1.6s) infinite; pointer-events: none; }
@keyframes awcShine { 0%, 55% { left: -70px; opacity: 0; } 62% { opacity: 1; } 78%, 100% { left: 115%; opacity: 0; } }
.awc-rar { position: absolute; top: 10px; left: 13px; font-style: normal; font-size: 10px; font-weight: 950; letter-spacing: .16em; text-transform: uppercase; color: rgb(var(--rarity-rgb)); text-shadow: 0 0 11px rgba(var(--rarity-rgb), .7); }
.awc-key { position: absolute; top: 8px; right: 11px; width: 21px; height: 21px; display: grid; place-items: center; border-radius: 6px; border: 1px solid rgba(160, 176, 205, .42); font-size: 11px; font-weight: 900; color: #aebdd6; background: rgba(16, 22, 38, .82); }
.awc-bundle { position: absolute; top: 30px; left: 13px; font-style: normal; font-size: 10px; font-weight: 950; letter-spacing: .1em; color: #06281c; background: linear-gradient(135deg, #8ef7c9, #4fd6a0); padding: 2px 8px; border-radius: 999px; box-shadow: 0 0 12px rgba(142, 247, 201, .55); z-index: 3; }
.awc-art { width: 112px; height: 112px; margin-top: 14px; image-rendering: pixelated; filter: drop-shadow(0 6px 16px rgba(var(--rarity-rgb), .4)); }
.awc-name { margin-top: 10px; font-size: 16px; font-weight: 950; color: #f4f7ff; letter-spacing: .01em; text-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.awc-effect { margin-top: 5px; min-height: 30px; display: flex; align-items: center; font-size: 12.5px; font-weight: 850; color: rgb(var(--rarity-rgb)); text-align: center; text-shadow: 0 0 12px rgba(var(--rarity-rgb), .35); }
.awc-card.is-mythic .awc-front { animation: awcMythicGlow 1.8s ease-in-out 1s infinite; }
@keyframes awcMythicGlow { 0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 24px rgba(255, 175, 64, .32), inset 0 0 24px rgba(255, 195, 96, .12); } 50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 48px rgba(255, 195, 84, .58), inset 0 0 36px rgba(255, 210, 120, .22); } }
.awc-card.is-taken { z-index: 3; animation: awcTaken .5s cubic-bezier(.2, .9, .3, 1.2) forwards; }
@keyframes awcTaken { 0% { transform: translateY(0) scale(1); filter: brightness(1); } 45% { transform: translateY(-14px) scale(1.16); filter: brightness(1.9); } 100% { transform: translateY(-8px) scale(1.1); filter: brightness(1.35); } }
.awc-card.is-lost { animation: awcLost .46s cubic-bezier(.5, 0, .8, .4) forwards; pointer-events: none; }
.awc-card.is-lost:first-child { --awc-tilt: -9deg; }
.awc-card.is-lost:last-child { --awc-tilt: 9deg; }
@keyframes awcLost { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(96px) rotate(var(--awc-tilt, 5deg)) scale(.9); } }
.awc-foot { position: relative; z-index: 1; display: flex; justify-content: space-between; margin-top: 18px; animation: awcHead .5s ease .25s both; }
.awc-foot small { font-size: 11px; font-weight: 750; color: #6d7f9b; letter-spacing: .05em; }
@media (max-width: 700px) { .awc-row { grid-template-columns: 1fr; gap: 12px; } .awc-card { height: 200px; } .awc-art { width: 76px; height: 76px; margin-top: 4px; } .awc-effect { min-height: 0; } }
@media (prefers-reduced-motion: reduce) { .awc-card, .awc-flip, .awc-shine, .awc-card.is-mythic .awc-front { animation-duration: .01s !important; animation-iteration-count: 1 !important; } .awc-flip { transition: none; } }
.aw-mat-stack { position: relative; }
.aw-mat-stack > .aw-item-card { width: 100%; }
.aw-stack-ctrl { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); z-index: 4; display: flex; align-items: center; gap: 7px; padding: 3px 6px; border: 1px solid rgba(99, 230, 255, .35); border-radius: 999px; background: rgba(7, 12, 22, .94); box-shadow: 0 4px 14px rgba(0, 0, 0, .45); }
.aw-stack-ctrl b { min-width: 52px; text-align: center; font-size: 11.5px; font-weight: 950; color: #d9f3ff; font-variant-numeric: tabular-nums; }
.aw-stack-ctrl button { width: 22px; height: 22px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(99, 230, 255, .4); border-radius: 50%; background: rgba(99, 230, 255, .1); color: #bdf1ff; font-size: 14px; font-weight: 900; line-height: 1; cursor: pointer; }
.aw-stack-ctrl button:hover:not(:disabled) { background: rgba(99, 230, 255, .22); }
.aw-stack-ctrl button:disabled { opacity: .3; cursor: default; }
.aw-mat-stack.is-active > .aw-item-card { box-shadow: 0 0 0 2px rgba(111, 232, 168, .55), 0 0 18px rgba(111, 232, 168, .25); }

.aw-card-prompt { position: absolute; z-index: 7; display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 14px 0 10px; box-sizing: border-box; border: 1px solid rgba(255, 211, 110, .5); border-radius: 12px; background: linear-gradient(180deg, rgba(26, 17, 40, .94), rgba(10, 8, 20, .92)); background-image: radial-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(180deg, rgba(26, 17, 40, .94), rgba(10, 8, 20, .92)); background-size: 7px 7px, 100% 100%; color: #ffe9b8; font: inherit; text-align: left; cursor: pointer; overflow: hidden; opacity: 0; transform: translateY(14px); pointer-events: none; box-shadow: 0 8px 30px rgba(0, 0, 0, .5), 0 0 26px rgba(201, 163, 255, .16), inset 0 1px 0 rgba(255, 255, 255, .06); }
.aw-card-prompt.is-live { opacity: 1; transform: none; pointer-events: auto; transition: opacity .3s ease, transform .38s cubic-bezier(.18, 1.15, .3, 1); animation: awCpFloat 3.4s ease-in-out .5s infinite; }
.aw-card-prompt.is-live::after { content: ''; position: absolute; inset: 0; border-radius: 12px; background: radial-gradient(120% 160% at 50% 100%, rgba(255, 236, 170, .5), rgba(201, 163, 255, .22) 45%, transparent 70%); opacity: 0; animation: awCpBloom .9s ease-out .05s 1; pointer-events: none; }
.aw-card-prompt:hover { border-color: rgba(255, 226, 150, .85); box-shadow: 0 10px 34px rgba(0, 0, 0, .55), 0 0 34px rgba(255, 211, 110, .3), inset 0 1px 0 rgba(255, 255, 255, .08); }
.aw-card-prompt .acp-edge { position: absolute; inset: -40%; z-index: 0; background: conic-gradient(from 0deg, rgba(255, 211, 110, 0), rgba(255, 211, 110, .5), rgba(201, 163, 255, .55), rgba(99, 230, 255, .45), rgba(255, 211, 110, 0)); opacity: .3; filter: blur(14px); animation: awCpEdge 5.5s linear infinite; pointer-events: none; }
.aw-card-prompt .acp-cards { position: relative; z-index: 1; flex: 0 0 auto; width: 40px; height: 32px; }
.aw-card-prompt .acp-cards i { position: absolute; bottom: 1px; left: 50%; width: 15px; height: 21px; border-radius: 3px; border: 1px solid rgba(255, 255, 255, .35); box-shadow: 0 2px 6px rgba(0, 0, 0, .55), inset 0 0 6px rgba(255, 255, 255, .18); transform-origin: 50% 90%; }
.aw-card-prompt .acp-cards i:nth-child(1) { background: linear-gradient(160deg, #7c52d6, #35205e); transform: translateX(-82%) rotate(-16deg); animation: awCpCardA 2.6s ease-in-out infinite; }
.aw-card-prompt .acp-cards i:nth-child(2) { background: linear-gradient(160deg, #ffd36e, #8a5c14); transform: translateX(-50%) rotate(0deg) translateY(-2px); animation: awCpCardB 2.6s ease-in-out .18s infinite; z-index: 1; }
.aw-card-prompt .acp-cards i:nth-child(3) { background: linear-gradient(160deg, #5be0e6, #17586e); transform: translateX(-16%) rotate(16deg); animation: awCpCardC 2.6s ease-in-out .36s infinite; }
.aw-card-prompt .acp-text { position: relative; z-index: 1; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 850; letter-spacing: .01em; color: #f4ead0; text-shadow: 0 1px 0 rgba(0, 0, 0, .6); }
.aw-card-prompt .acp-text kbd { display: inline-block; margin: 0 5px; padding: 2px 9px 3px; border-radius: 6px; border: 1px solid rgba(216, 190, 255, .7); background: linear-gradient(180deg, #322650, #171126); color: #ecdfff; font-family: inherit; font-size: 12px; font-weight: 950; letter-spacing: .08em; vertical-align: baseline; box-shadow: 0 2px 0 rgba(0, 0, 0, .65), 0 0 12px rgba(201, 163, 255, .35), inset 0 1px 0 rgba(255, 255, 255, .14); animation: awCpKbd 1.5s ease-in-out infinite; }
.aw-card-prompt .acp-count { position: relative; z-index: 1; flex: 0 0 auto; padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(255, 211, 110, .5); background: rgba(255, 211, 110, .13); color: #ffd97e; font-size: 11px; font-weight: 900; white-space: nowrap; }
.aw-card-prompt .acp-shine { position: absolute; top: -30%; bottom: -30%; left: -34%; width: 26%; z-index: 2; background: linear-gradient(105deg, transparent, rgba(255, 244, 214, .34), transparent); transform: skewX(-18deg); animation: awCpShine 2.8s ease-in-out .9s infinite; pointer-events: none; }
.aw-card-prompt .acp-sparks { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.aw-card-prompt .acp-sparks s { position: absolute; width: 3px; height: 3px; background: #ffe9ad; box-shadow: 0 0 7px rgba(255, 224, 140, .95); opacity: 0; }
.aw-card-prompt .acp-sparks s:nth-child(1) { left: 8%; top: 18%; animation: awCpSpark 2.2s ease-in-out .2s infinite; }
.aw-card-prompt .acp-sparks s:nth-child(2) { left: 30%; top: 72%; background: #d8beff; box-shadow: 0 0 7px rgba(201, 163, 255, .95); animation: awCpSpark 2.6s ease-in-out 1s infinite; }
.aw-card-prompt .acp-sparks s:nth-child(3) { left: 68%; top: 14%; background: #9fe9f2; box-shadow: 0 0 7px rgba(99, 230, 255, .9); animation: awCpSpark 2.4s ease-in-out 1.6s infinite; }
.aw-card-prompt .acp-sparks s:nth-child(4) { left: 91%; top: 62%; animation: awCpSpark 2.9s ease-in-out .6s infinite; }
@keyframes awCpFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes awCpBloom { 0% { opacity: .9; } 100% { opacity: 0; } }
@keyframes awCpEdge { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes awCpKbd { 0%, 100% { box-shadow: 0 2px 0 rgba(0, 0, 0, .65), 0 0 10px rgba(201, 163, 255, .3), inset 0 1px 0 rgba(255, 255, 255, .14); transform: translateY(0); } 55% { box-shadow: 0 1px 0 rgba(0, 0, 0, .65), 0 0 18px rgba(201, 163, 255, .65), inset 0 1px 0 rgba(255, 255, 255, .2); transform: translateY(1px); } }
@keyframes awCpShine { 0% { left: -34%; } 55%, 100% { left: 122%; } }
@keyframes awCpSpark { 0%, 100% { opacity: 0; transform: scale(.5); } 45% { opacity: 1; transform: scale(1.25); } 60% { opacity: .6; transform: scale(1); } }
@keyframes awCpCardA { 0%, 100% { transform: translateX(-82%) rotate(-16deg); } 50% { transform: translateX(-82%) rotate(-19deg) translateY(-1.5px); } }
@keyframes awCpCardB { 0%, 100% { transform: translateX(-50%) translateY(-2px); } 50% { transform: translateX(-50%) translateY(-4.5px); } }
@keyframes awCpCardC { 0%, 100% { transform: translateX(-16%) rotate(16deg); } 50% { transform: translateX(-16%) rotate(19deg) translateY(-1.5px); } }
@media (prefers-reduced-motion: reduce) { .aw-card-prompt.is-live, .aw-card-prompt .acp-edge, .aw-card-prompt .acp-shine, .aw-card-prompt .acp-sparks s, .aw-card-prompt .acp-cards i, .aw-card-prompt .acp-text kbd { animation: none; } .aw-card-prompt.is-live::after { animation: none; opacity: 0; } }
@media (max-width: 700px) { .aw-card-prompt { height: 40px; gap: 8px; padding: 0 10px 0 8px; } .aw-card-prompt .acp-cards { width: 32px; height: 26px; } .aw-card-prompt .acp-text { font-size: 12px; } .aw-card-prompt .acp-count { display: none; } }
