.ar-sbox { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; max-width: 620px; margin: 0 auto; padding: 0 16px; height: 50px; border-radius: 999px; border: 1px solid #8a6a2a; background: rgba(0, 0, 0, 0.6); box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.7), 0 0 0 1px #000; box-sizing: border-box; }
.ar-sbox.big { height: 60px; max-width: 640px; padding: 0 20px; }
.ar-sbox:focus-within { border-color: var(--gold, #f8d36b); box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.7), 0 0 0 1px #000, 0 0 22px rgba(248, 211, 107, 0.2); }
.ar-sic { width: 22px; height: 22px; flex: none; color: var(--gold, #f8d36b); }
.ar-sbox input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--ink, #f1e3c2); font: 18px "Friz", serif; }
.ar-sbox.big input { font-size: 20px; }
.ar-sbox input::placeholder { color: #8a7a5c; }
.ar-drop { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30; display: none; padding: 6px; border-radius: 12px; border: 1px solid #5a4620; text-align: left;
  background: linear-gradient(rgba(20, 17, 12, 0.98), rgba(12, 10, 7, 0.99)); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.85); max-height: min(70vh, 520px); overflow-y: auto; }
.ar-drop.on { display: block; }
.ar-hit { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 9px; text-decoration: none; color: inherit; }
.ar-hit:hover, .ar-hit.sel { background: rgba(248, 211, 107, 0.08); }
.ar-hn { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ar-hn b { font: 17px "Friz", serif; font-weight: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-hn small { font-size: 12.5px; color: var(--muted, #9b8c6e); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-rg { font: 11px "Friz", serif; color: var(--ink-2, #cbb994); border: 1px solid #4a3a1c; border-radius: 999px; padding: 2px 8px; }
.ar-lv { width: 34px; height: 34px; border-radius: 6px; flex: none; }
.ar-hint { padding: 12px; color: var(--muted, #9b8c6e); font-size: 14px; }

.ar-land > .in { padding: 46px 28px 40px; text-align: center; background: radial-gradient(ellipse at 50% 0%, rgba(248, 211, 107, 0.16), transparent 60%), linear-gradient(rgba(10, 8, 5, 0.75), rgba(10, 8, 5, 0.94)), url("assets/game/scenes/dalaran.jpg") center / cover; overflow: visible; }
.ar-lic { width: 72px; height: 72px; border-radius: 12px; box-shadow: 0 0 0 2px #000, 0 0 0 4px #b8913f, 0 10px 30px rgba(0, 0, 0, 0.8); }
.ar-land h2 { font: 46px/1.05 "Morpheus", serif; font-weight: normal; color: var(--title, #f8d36b); margin: 16px 0 10px; text-shadow: 0 2px 0 #000; }
.ar-land p { max-width: 560px; margin: 0 auto 26px; color: var(--ink-2, #cbb994); font-size: 17px; line-height: 1.5; }
.ar-try { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 22px; }
.ar-try > span { width: 100%; font-size: 12.5px; color: var(--muted, #9b8c6e); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 2px; }
.ar-try a { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; background: rgba(0, 0, 0, 0.55); border: 1px solid #4a3a1c; text-decoration: none; font: 15px "Friz", serif; }
.ar-try a small { font-size: 11px; color: #1a1206; background: var(--gold, #f8d36b); border-radius: 999px; padding: 0 6px; }
.ar-top { position: relative; z-index: 5; margin-bottom: 4px; }
.ar-wait > .in { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 60px 20px; color: var(--ink-2, #cbb994); }
.ar-wait b { font: 24px "Morpheus", serif; font-weight: normal; color: var(--title, #f8d36b); }
.ar-spin { width: 38px; height: 38px; border-radius: 50%; border: 3px solid rgba(248, 211, 107, 0.2); border-top-color: var(--gold, #f8d36b); animation: ar-spin 0.9s linear infinite; }
@keyframes ar-spin { to { transform: rotate(360deg); } }

.ar-sheet > .in { position: relative; padding: 24px 24px 18px; background: radial-gradient(ellipse 50% 60% at 50% 45%, color-mix(in srgb, var(--cc) 22%, transparent), transparent 70%), linear-gradient(rgba(8, 7, 5, 0.72), rgba(8, 7, 5, 0.9) 75%), var(--bg) center / cover; }
.ar-head { display: flex; align-items: center; gap: 16px; }
.ar-name { flex: 1; min-width: 0; }
.ar-name h2 { font: 44px/1 "Morpheus", serif; font-weight: normal; margin: 0; text-shadow: 0 2px 0 #000, 0 0 26px color-mix(in srgb, var(--cc) 40%, transparent); }
.ar-name h2 span { color: var(--ink, #f1e3c2); }
.ar-line { margin-top: 6px; font-size: 16.5px; color: var(--ink-2, #cbb994); }
.ar-line b { color: var(--ink, #f1e3c2); font-weight: normal; }
.ar-guild { color: #9fe07a; }
.ar-crest { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.8)); }
.ar-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.ar-chip { display: flex; align-items: center; gap: 9px; padding: 6px 14px 6px 6px; border-radius: 10px; background: rgba(0, 0, 0, 0.55); border: 1px solid rgba(248, 211, 107, 0.2); }
.ar-chip img { width: 30px; height: 30px; border-radius: 6px; box-shadow: 0 0 0 1px #000; }
.ar-chip b { display: block; font: 17px/1.1 "Friz", serif; font-weight: normal; color: var(--ink, #f1e3c2); }
.ar-chip small { display: block; font-size: 11.5px; color: var(--muted, #9b8c6e); }

.ar-doll { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 1.1fr) minmax(0, 1fr); grid-template-areas: "l m r" "w w w"; gap: 10px 14px; margin-top: 12px; }
.ar-col { display: flex; flex-direction: column; gap: 6px; }
.ar-col.l { grid-area: l; } .ar-col.r { grid-area: r; }
.ar-wpn { grid-area: w; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 760px; width: 100%; justify-self: center; }
.ar-slot { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 4px; border-radius: 10px; border: 1px solid transparent; background: rgba(0, 0, 0, 0.45); color: inherit; font: inherit; text-align: left; cursor: default; }
button.ar-slot { cursor: pointer; }
button.ar-slot:hover { border-color: color-mix(in srgb, var(--qc) 60%, transparent); background: rgba(0, 0, 0, 0.7); }
.ar-col.r .ar-slot { flex-direction: row-reverse; text-align: right; }
.ar-ic { position: relative; flex: none; width: 46px; height: 46px; border-radius: 8px; box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--qc, #333), 0 0 12px color-mix(in srgb, var(--qc, #000) 35%, transparent); background: rgba(255, 255, 255, 0.04); }
.ar-ic img { display: block; width: 100%; height: 100%; border-radius: 8px; }
.ar-ic i { position: absolute; right: -3px; bottom: -3px; font: 10.5px/1 "Friz", serif; font-style: normal; color: #fff; background: rgba(0, 0, 0, 0.85); border-radius: 4px; padding: 2px 3px; box-shadow: 0 0 0 1px #000; }
.ar-slot.empty .ar-ic { box-shadow: 0 0 0 1px #000, inset 0 0 12px rgba(0, 0, 0, 0.8); background: rgba(255, 255, 255, 0.03); }
.ar-sl { min-width: 0; display: flex; flex-direction: column; }
.ar-sl small { font-size: 11px; color: var(--muted, #9b8c6e); text-transform: uppercase; letter-spacing: 0.06em; }
.ar-sl b { font: 14.5px/1.2 "Friz", serif; font-weight: normal; color: var(--qc); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-sl em { font-size: 11.5px; font-style: normal; color: #1eff00; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-slot.empty em { color: #6f6350; }
.ar-model { grid-area: m; position: relative; min-height: 460px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 12px; }
.ar-model::before { content: ""; position: absolute; left: 10%; right: 10%; bottom: 6%; height: 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.75), transparent); }
.ar-render { position: absolute; left: 50%; top: 50%; height: 138%; transform: translate(-50%, -50%); max-width: none; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.7)); }
.ar-noimg { display: none; }
.ar-model.nomodel .ar-render { display: none; }
.ar-model.nomodel .ar-noimg { display: block; }
.ar-lvl { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); display: flex; align-items: baseline; gap: 6px; font: 26px "Morpheus", serif; color: var(--gold, #f8d36b); text-shadow: 0 2px 0 #000; padding: 2px 16px; border-radius: 999px; background: rgba(0, 0, 0, 0.6); border: 1px solid rgba(248, 211, 107, 0.35); }
.ar-lvl small { font: 11px "Friz", serif; color: var(--ink-2, #cbb994); text-transform: uppercase; letter-spacing: 0.1em; }
.ar-live { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: 12.5px; color: var(--muted, #9b8c6e); }
.ar-dot { width: 8px; height: 8px; border-radius: 50%; background: #5fd35f; box-shadow: 0 0 10px #5fd35f; animation: ar-pulse 2s ease-in-out infinite; }
@keyframes ar-pulse { 50% { opacity: 0.4; } }

.ar-sgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.ar-sg { padding: 12px 14px; border-radius: 10px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(248, 211, 107, 0.12); }
.ar-sg h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font: 18px "Morpheus", serif; font-weight: normal; color: var(--title, #f8d36b); }
.ar-sg h4 img { width: 22px; height: 22px; border-radius: 5px; box-shadow: 0 0 0 1px #000; }
.ar-sr { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.06); font-size: 14.5px; color: var(--ink-2, #cbb994); }
.ar-sr:last-child { border-bottom: 0; }
.ar-sr b { font: 15px "Friz", serif; font-weight: normal; color: var(--ink, #f1e3c2); }
.ar-resrow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.ar-res { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 4px; border-radius: 10px; background: rgba(0, 0, 0, 0.35); border: 1px solid color-mix(in srgb, var(--rc) 35%, transparent); }
.ar-res img { width: 30px; height: 30px; border-radius: 6px; box-shadow: 0 0 0 1px #000, 0 0 12px color-mix(in srgb, var(--rc) 45%, transparent); }
.ar-res b { font: 18px "Friz", serif; font-weight: normal; color: var(--rc); }
.ar-res small { font-size: 11px; color: var(--muted, #9b8c6e); }

.ar-tip { position: fixed; z-index: 90; display: none; pointer-events: none; max-width: 330px; }
.ar-tip.on { display: block; }
.ar-tip-in { padding: 10px 13px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--qc) 55%, #444); background: rgba(8, 10, 22, 0.96); box-shadow: 0 0 0 1px #000, 0 14px 40px rgba(0, 0, 0, 0.85); font-size: 14px; line-height: 1.45; color: #fff; }
.ar-tn { font: 16px "Friz", serif; margin-bottom: 2px; }
.ar-tg { color: #ffd100; }
.ar-t2 { display: flex; justify-content: space-between; gap: 18px; }
.ar-tgr { color: #1eff00; }
.ar-tset { color: #ffd100; margin-top: 8px; }
.ar-tsi { color: #7d7d7d; padding-left: 10px; } .ar-tsi.on { color: #ffff98; }
.ar-tdim { color: #7d7d7d; }
.ar-tdesc { color: #ffd100; margin-top: 4px; }
.ar-tip.sheet { pointer-events: auto; left: 10px !important; right: 10px; top: auto !important; bottom: 14px; max-width: none; }
.ar-tip.sheet .ar-tip-in { padding: 14px 44px 14px 16px; font-size: 15px; }
.ar-tx { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255, 220, 140, 0.35); background: rgba(0, 0, 0, 0.6); color: var(--ink, #f1e3c2); font-size: 20px; line-height: 1; }

@media (max-width: 900px) {
  .ar-doll { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "m m" "l r" "w w"; }
  .ar-model { min-height: 380px; }
}
@media (max-width: 720px) {
  .ar-sheet { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); width: 100vw; border-radius: 0; padding-left: 0; padding-right: 0; }
  .ar-sheet > .in { padding: 18px 10px 14px; border-radius: 0; }
  .ar-head { gap: 12px; }
  .ar-head .ico { --s: 48px !important; }
  .ar-name h2 { font-size: 32px; }
  .ar-line { font-size: 14.5px; }
  .ar-crest { width: 44px; height: 44px; }
  .ar-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .ar-chip { padding: 5px 8px 5px 5px; }
  .ar-model { min-height: 380px; }
  .ar-render { height: 165%; transform: translate(-50%, -52%); }
  .ar-doll { gap: 6px 6px; }
  .ar-col { gap: 5px; }
  .ar-slot { gap: 7px; padding: 3px; }
  .ar-ic { width: 40px; height: 40px; }
  .ar-sl b { font-size: 13px; }
  .ar-sl small { font-size: 10px; }
  .ar-wpn { grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .ar-land > .in { padding: 34px 14px 30px; }
  .ar-land h2 { font-size: 36px; }
  .ar-land p { font-size: 15.5px; }
  .ar-sbox.big { height: 54px; padding: 0 14px; }
  .ar-sbox.big input, .ar-sbox input { font-size: 16.5px; }
  .ar-sgrid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ar-resrow { gap: 5px; }
  .ar-res small { font-size: 10px; }
}
.ar-sbox input, .psearch .ar-sbox input, .psearch .ar-sbox input:focus { width: auto; padding: 0; border-radius: 0; background: none; box-shadow: none; }
.ar-known .ar-line { margin: 0 0 18px; }
.ar-known h2 { margin-top: 12px; }
.ar-hid { max-width: 640px; margin: 22px auto 14px; padding: 18px 20px; border-radius: 14px; text-align: left; border: 2px solid #c2462e; background: linear-gradient(rgba(70, 18, 10, 0.88), rgba(30, 9, 5, 0.92)); box-shadow: 0 0 0 1px #000, 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 34px rgba(220, 70, 40, 0.25); }
.ar-hidh { display: flex; align-items: center; gap: 14px; }
.ar-lock { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: #ffd36b; background: radial-gradient(circle at 40% 35%, #8a2a18, #3a0e07); box-shadow: 0 0 0 2px #000, 0 0 0 4px #c2462e; }
.ar-lock svg { width: 26px; height: 26px; }
.ar-hidh b { display: block; font: 26px/1.1 "Morpheus", serif; font-weight: normal; color: #ffe3c2; text-shadow: 0 2px 0 #000; }
.ar-hidh span { display: inline-block; margin-top: 4px; font: 12.5px "Friz", serif; letter-spacing: 0.08em; text-transform: uppercase; color: #ffb39a; }
.ar-hid p { margin: 14px 0 0; max-width: none; font-size: 16px; line-height: 1.5; color: #f1e3c2; }
.ar-how { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 211, 107, 0.25); }
.ar-how > b { display: block; font: 16px "Friz", serif; font-weight: normal; color: #ffd36b; }
.ar-how ol { margin: 8px 0 0; padding-left: 22px; color: #e6d9bc; font-size: 15px; line-height: 1.6; }
.ar-how a { color: #ffd36b; }
.ar-land p.ar-hidnote { margin: 0 auto 20px; font-size: 13px; color: #9b8c6e; }
@media (max-width: 720px) { .ar-hid { padding: 14px 14px; } .ar-hidh b { font-size: 21px; } .ar-lock { width: 44px; height: 44px; } .ar-hid p { font-size: 15px; } .ar-how ol { font-size: 14px; } }
.ar-3dv { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s; }
.ar-3don .ar-3dv { opacity: 1; }
.ar-3don .ar-render, .ar-3don .ar-lvl { opacity: 0; transition: opacity 0.4s; }
.ar-3dv .cv-c { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.ar-3dv .cv-load { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold, #f8d36b); font: 14px "Friz", serif; }
.ar-3dv .cv-anims { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; gap: 3px; padding: 4px; border-radius: 10px; background: rgba(0, 0, 0, 0.6); border: 1px solid rgba(248, 211, 107, 0.2); }
.ar-3dv .cv-anims button { border: 0; background: none; color: var(--ink-2, #cbb994); padding: 6px 9px; border-radius: 7px; cursor: pointer; font: 12.5px "Friz", serif; }
.ar-3dv .cv-anims button.on { background: rgba(248, 211, 107, 0.18); color: var(--gold, #f8d36b); }
.ar-model.ar-3d { min-height: 520px; }
.ar-3dnote { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 3; pointer-events: none; white-space: nowrap; padding: 6px 14px; border-radius: 999px; background: rgba(0, 0, 0, 0.65); border: 1px solid rgba(248, 211, 107, 0.35); color: var(--gold, #f8d36b); font: 13px "Friz", serif; animation: ar-3dpulse 1.2s ease-in-out infinite; }
@keyframes ar-3dpulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .ar-3dnote { animation: none; } }
@media (max-width: 720px) { .ar-model.ar-3d { min-height: 440px; } .ar-3dv .cv-anims button { padding: 6px 7px; font-size: 11.5px; } }
.ar-land { z-index: 5; }
.frame.ar-land > .in { overflow: visible; }
