.ravok-cannon-meter {
    position: relative;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    padding: 0;
    border: 0;
    background: none;
    isolation: isolate;
    overflow: visible;
    cursor: pointer;
}
.v3-badge-row > .ravok-cannon-meter { position: absolute; left: 40px; bottom: 5px; z-index: 19; width: 92px; height: 92px; }
.v3-compact-hero > .ravok-cannon-meter { position: absolute; left: 5px; bottom: 6px; z-index: 9; width: 34px; height: 34px; pointer-events: none; }
.ravok-cannon-meter::before {
    content: "";
    position: absolute;
    inset: 3%;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(ellipse at 48% 68%, #1fe6d775, #1a726b59 37%, #d68c362c 52%, transparent 73%);
    animation: ravok-light 3.5s ease-in-out infinite alternate;
}
.ravok-cannon-effect { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ravok-compass { transform-origin: center; animation: ravok-turn 23s linear infinite; }
.ravok-compass-rim { stroke: #76eff2; stroke-width: .8; opacity: .65; }
.ravok-compass-rope { stroke: #ffc16b; stroke-width: 2.1; stroke-dasharray: 2 4; filter: drop-shadow(0 0 2px #f3964f); }
.ravok-compass-rose { stroke: #f6c57d; stroke-width: 1.1; fill: #c080341c; filter: drop-shadow(0 0 2px #e19a48); }
.ravok-wake { stroke: #57f9e4; stroke-width: 1.65; stroke-dasharray: 29 7 13 5; filter: drop-shadow(0 0 3px #26e9da); animation: ravok-wake 3s linear infinite; }
.ravok-pennants { transform-origin: 60px 60px; animation: ravok-pennants 3.1s ease-in-out infinite alternate; }
.ravok-pennants path:first-child { fill: #a93b45; stroke: #ffbc75; stroke-width: .8; }
.ravok-pennants path:last-child { fill: none; stroke: #ffe2a9; stroke-width: 1.4; }
.ravok-sparks { fill: #ffdb99; stroke: #ffdb99; stroke-width: 1.1; filter: drop-shadow(0 0 3px #fbaa68); animation: ravok-light 1.8s ease-in-out infinite alternate; }
:is(.ravok-cannon-meter, .ravok-emblem) > img { position: relative; width: 96%; height: 96%; object-fit: contain; pointer-events: none; }
.ravok-cannon-meter > img { filter: drop-shadow(0 2px 2px #151315) drop-shadow(0 0 4px #fbb96890); animation: ravok-roll 3.8s ease-in-out infinite; }
.ravok-cannon-meter[data-prepared=true]::before { background: radial-gradient(ellipse, #ffe2ad9c, #ff9b3c65 42%, #71442f28 61%, transparent 73%); }
.ravok-cannon-meter[data-prepared=true] .ravok-sparks { stroke-width: 1.8; animation-duration: .8s; }
.ravok-cannon-meter:focus-visible, .ravok-close:focus-visible { outline: 2px solid #ffdb8c; outline-offset: 3px; }
.ravok-cannon-meter:focus-visible { border-radius: 50%; }
.ravok-level {
    position: absolute;
    right: 5%;
    bottom: 3%;
    padding: 3px 7px;
    border: 1px solid #dbad66;
    border-radius: 14px;
    color: #fff0cf;
    background: linear-gradient(155deg, #293d37, #151c24);
    box-shadow: 0 1px 5px #000b;
    font-size: 12px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.v3-compact-panel-head .ravok-level { font-size: 10px; padding: 2px 4px; }
.v3-compact-hero .ravok-level { font-size: 8px; padding: 2px 3px; }

.ravok-chart-effect { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; }
.ravok-chart-routes { stroke: #ffd189; stroke-width: 1.1; stroke-dasharray: 4 7; opacity: .42; animation: ravok-wake 8s linear infinite; }
.ravok-chart-compass { stroke: #eebc75; stroke-width: 1; opacity: .57; transform-origin: 750px 128px; animation: ravok-turn 45s linear infinite; }
.ravok-chart-water { stroke: #65dfd0; stroke-width: 1.4; opacity: .56; animation: ravok-swell 7s ease-in-out infinite alternate; }
.ravok-chart-ships { stroke: #c8fff1; stroke-width: 1; fill: #247d7870; opacity: .67; animation: ravok-swell 5s ease-in-out infinite alternate-reverse; }
@keyframes ravok-turn { to { transform: rotate(360deg); } }
@keyframes ravok-wake { to { stroke-dashoffset: -55; } }
@keyframes ravok-swell { from { transform: translate(-5px, -3px); } to { transform: translate(13px, 5px); } }
@keyframes ravok-pennants { from { transform: rotate(-4deg); } to { transform: rotate(5deg); } }
@keyframes ravok-roll { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-3px) rotate(3deg); } }
@keyframes ravok-light { from { opacity: .52; transform: scale(.94); } to { opacity: 1; transform: scale(1.04); } }

:is(.ravok-hover, .ravok-inspector) {
    color: #f7ebd2;
    background: #101d24;
    border: 1px solid #b89254;
    border-radius: 14px;
}
.ravok-hover {
    position: fixed;
    z-index: 99999;
    isolation: isolate;
    width: min(300px, calc(100vw - 16px));
    box-sizing: border-box;
    overflow: hidden;
    background: linear-gradient(142deg, #25474a, #111e2af5 52%, #282229);
    box-shadow: 0 0 0 3px #10222c, 0 12px 34px #050e17e8, 0 0 22px #35dac249;
    pointer-events: none;
    font-size: .85rem;
}
.ravok-hover .ravok-chart-effect { opacity: .46; }
.ravok-hover-content { position: relative; padding: 11px 14px; }
.ravok-hover-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
.ravok-emblem { position: relative; display: inline-grid; place-items: center; flex: 0 0 54px; height: 54px; border-radius: 50%; background: radial-gradient(circle, #d596485b, #4bb3ac29 56%, transparent 72%); }
.ravok-emblem > img { filter: drop-shadow(0 2px 3px #060b10) drop-shadow(0 0 6px #f6b66a80); }
.ravok-hover-heading strong { display: block; color: #fff0cb; font-size: .95rem; line-height: 1.25; }
.ravok-hover-heading small { display: block; margin-top: 4px; color: #a7e8db; }
.ravok-hover[data-prepared=true] .ravok-hover-heading small { color: #ffcf84; }
.ravok-hover-progress, .ravok-hover footer { display: grid; align-items: center; grid-template-columns: 1fr auto; gap: 5px 10px; font-weight: 600; }
.ravok-hover-progress { padding: 8px 9px; border: 1px solid #d1af6859; border-radius: 9px; background: #101923bf; }
.ravok-hover-progress b, .ravok-hover footer b { color: #ffda90; }
.ravok-hover footer { grid-template-columns: 20px 1fr auto; margin-top: 9px; }
.ravok-hover footer img { width: 19px; height: 19px; border-radius: 4px; }
.ravok-level-track { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 4px; width: 100%; }
.ravok-level-track i { height: 5px; border: 1px solid #e5c68459; border-radius: 24px; background: #13252d; }
.ravok-level-track i.is-lit { border-color: #ffcb75; background: linear-gradient(90deg, #53c9a8, #ffc576); box-shadow: 0 0 6px #f7af5773; }

.ravok-inspector {
    --ravok-gutter: clamp(8px, 1.5vw, 32px);
    --ravok-header-height: clamp(112px, 13vh, 168px);
    width: min(calc(100% - 2 * var(--ravok-gutter)), clamp(72rem, 78vw, 112rem));
    max-width: none;
    max-height: calc(100dvh - 2 * var(--ravok-gutter));
    box-sizing: border-box;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 0 0 3px #13262c, 0 20px 92px #000d, 0 0 42px #55dec349;
    background: linear-gradient(155deg,#12313a,#0c1a23 62%,#22202b);
    font-size: clamp(1rem, calc(.82rem + .47vw), 1.55rem);
    line-height: 1.4;
}
.ravok-inspector[open] { display: flex; flex-direction: column; }
.ravok-inspector::backdrop { background: #07121ad1; backdrop-filter: blur(4px); }
.ravok-inspector-ambient { position: absolute; inset: var(--ravok-header-height) 0 0; overflow: hidden; opacity: .35; pointer-events: none; }
.ravok-inspector-heading {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 22px);
    flex: none;
    min-height: var(--ravok-header-height);
    padding: .25em 3.6em .25em 1.15em;
    overflow: hidden;
    background: linear-gradient(120deg, #244947, #14303a 50%, #1e2638);
    border-bottom: 1px solid #e5b77881;
}
.ravok-inspector-heading::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, #10293045, #0c1e295f 49%,transparent); }
.ravok-inspector-heading .ravok-chart-effect { z-index: -2; }
.ravok-inspector-heading .ravok-emblem { flex-basis: min(5.1em, calc(var(--ravok-header-height) - 12px)); height: min(5.1em, calc(var(--ravok-header-height) - 12px)); }
.ravok-inspector-heading .ravok-emblem > img { animation: ravok-roll 4s ease-in-out infinite; }
.ravok-inspector-heading h2 { margin: 0; font-size: 1.92em; line-height: 1.12; text-wrap: balance; text-shadow: 0 2px 12px #051218; color: #fff2d8; }
.ravok-close { position: absolute; top: .5em; right: .5em; width: max(44px,1.9em); height: max(44px,1.9em); background: #121d29db; color: #ffdfad; border: 1px solid #b89254; border-radius: 9px; font-size: 1.3em; cursor: pointer; }
.ravok-close:hover { background: #385358; }
.ravok-inspector-body { position: relative; min-height: 0; padding: .95em; overflow: auto; overscroll-behavior: contain; scrollbar-color: #aa8958 #0b202b; }
.ravok-inspector-status { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .5em; margin-bottom: .75em; }
.ravok-inspector-status > .ravok-fact, .ravok-inspector-panel { background: #0b1924be; border: 1px solid #77b8aa4d; border-radius: 10px; }
.ravok-inspector .ravok-fact { gap: .52em; }
.ravok-inspector .ravok-fact > img { width: 1.75em; height: 1.75em; }
.ravok-inspector .ravok-fact > div { min-width: 0; overflow-wrap: anywhere; }
.ravok-inspector-status > .ravok-fact { min-width: 0; margin: 0; padding: .6em; }
.ravok-inspector-status > .ravok-fact span { font-size: .92em; color: #b6e4dd; }
.ravok-inspector[data-prepared=true] .ravok-inspector-status > .ravok-fact:first-child { border-color: #e5b477; }
.ravok-inspector-grid { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: .7em; }
.ravok-inspector-panel { min-width: 0; padding: .72em; }
.ravok-inspector-panel > header { display: flex; justify-content: space-between; align-items: center; gap: .5em; margin-bottom: .52em; }
.ravok-inspector h3 { margin: 0; color: #ffdc99; font-size: 1.17em; }
.ravok-inspector-panel > header b { color: #ffda96; background: #d1a46525; border-radius: 6px; padding: .15em .5em; }
.ravok-inspector-panel p { margin: .6em 0 0; color: #d3e9e7; line-height: 1.45; font-size: .94em; }
.ravok-bounty-list { margin: 8px 0 0; padding: 0; list-style: none; }
.ravok-bounty-list li, .ravok-inspector-panel .ravok-empty { padding: 6px 8px; border-radius: 6px; background: #24434a69; }
.ravok-bounty-list li + li { margin-top: 5px; }
.ravok-fact { display: flex; align-items: center; gap: 8px; margin: .3em 0; }
.ravok-fact > img { width: 28px; height: 28px; object-fit: cover; border-radius: 6px; flex: none; }
.ravok-fact strong, .ravok-fact div > span { display: block; }
.ravok-fact div > span { opacity: .9; }
.ravok-inspector .ravok-salvo-rail { padding: .55em; }
.ravok-inspector .ravok-rail-caption strong { font-size: 1.17em; }
.ravok-salvo-damage-title { margin: .7em 0 .35em; color: #ffdc99; font-size: .94em; }
.ravok-salvo-damage { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .3em; margin: 0; }
.ravok-salvo-damage > div { padding: .35em .5em; border-radius: 6px; background: #24434a69; }
.ravok-salvo-damage dt { color: #b6e4dd; font-size: .85em; }
.ravok-salvo-damage dd { margin: 0; color: #fff0c9; font-weight: 700; font-variant-numeric: tabular-nums; }

.ravok-ability-facts, .ravok-ability-facts .ability-description-summary { display: block; }
.ravok-ability-facts .ability-inline-icon, .ravok-ability-effects .ability-inline-icon { margin-right: .3em; }
body.v3-body > dialog.v3-ability-info-window.v3-ravok-ability {
    --v3-tooltip-accent-rgb: 225, 182, 111;
    --v3-tooltip-accent: #f0c67d;
    color: #faf0dc;
    border-color: #d1a363;
    background: radial-gradient(ellipse at 0 0, #2d5355, transparent 55%), linear-gradient(147deg,#112934,#0e1d2c 64%,#282030);
}
.v3-ravok-ability .v3-ability-info-facts { border-color: #69a59780; }
.ravok-ability-effects .ability-progression-step { grid-template-columns: minmax(0,1fr); }
.ravok-ability-effects .ability-progression-copy strong { color: #f5cc8c; margin-inline-end: .35em; }
.ravok-scaling { padding: 9px 11px; background: #1c444d87; border-color: #72c2b5; color: #d1f3ed; font-style: normal; white-space: normal; }
.ravok-scaling strong { display: block; color: #ffdd9b; margin-bottom: 5px; }
.ravok-scaling-line { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0 .7em; }
.ravok-scaling small { color: #b9dcd8; font-size: .83em; }
.ravok-scaling > small { display: block; margin-top: 4px; }
.ravok-salvo-rail { display: block; padding: 9px; border: 1px solid #b995537a; border-radius: 9px; background: linear-gradient(115deg,#254447bd,#1b242de8); }
.ravok-rail-caption { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; margin-bottom: 7px; color: #ffe1a7; font-style: normal; }
.ravok-rail-caption small { color: #b2e6dd; }
.ravok-fuse { position: relative; display: block; height: clamp(48px, 5vw, 79px); margin-top: 3px; }
.ravok-fuse > svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ravok-fuse > svg path { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ravok-fuse-outline { stroke: #111720; stroke-width: 9; }
.ravok-fuse-rope { stroke: #8f704d; stroke-width: 5; }
.ravok-fuse-braid { stroke: #dfb073; stroke-width: 2; stroke-dasharray: 1 4; }
.ravok-fuse-lit { stroke: #c65025; stroke-width: 5; filter: drop-shadow(0 0 5px #f86a36aa); }
.ravok-fuse-coals { stroke: #ffc466; stroke-width: 2; stroke-dasharray: 2 5; animation: ravok-fuse-coals 1.2s linear infinite; }
.ravok-fuse-knot, .ravok-fuse-ember { position: absolute; transform: translate(-50%, -50%); }
.ravok-fuse-knot { width: 9px; height: 9px; border: 2px solid #d6ab72; border-radius: 50%; background: #4e3228; }
.ravok-fuse-knot.is-lit { border-color: #ffc971; background: #c85c2c; }
.ravok-fuse-ember { width: 31px; height: 31px; margin-top: -8px; }
.ravok-fuse-ember svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 7px #ff9b52); }
.ravok-fuse-flame { fill: #ff983b; stroke: #ffd389; animation: ravok-fuse-flicker .6s ease-in-out infinite alternate; transform-origin: 50% 80%; }
.ravok-fuse-core { fill: #fff2bb; }
.ravok-fuse-sparks { fill: none; stroke: #ffe093; stroke-width: 1.7; stroke-linecap: round; animation: ravok-fuse-sparks 1.3s ease-out infinite; }
@keyframes ravok-fuse-coals { to { stroke-dashoffset: 7; } }
@keyframes ravok-fuse-flicker { to { transform: skewX(-9deg) scale(.92,1.09); } }
@keyframes ravok-fuse-sparks { from { opacity: 1; } to { opacity: .12; transform: translateY(-7px); } }
.ravok-rail-stops { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 2px; margin-top: 5px; font-variant-numeric: tabular-nums; text-align: center; }
.ravok-rail-stop { display: grid; justify-items: center; gap: 1px; padding: 3px 0; border: 1px solid transparent; border-radius: 6px; font-style: normal; }
.ravok-rail-stop b { color: #ffc982; font-size: .92em; }
.ravok-rail-stop small { color: #c1e0dd; font-size: .76em; white-space: nowrap; }
.ravok-wave-key { opacity: .7; }
.ravok-rail-stop[aria-current=step] { background: #26675d82; border-color: #e3bc6a96; }
.ravok-rail-stop[aria-current=step] small { color: #fff4d8; }

@media(max-width: 820px) {
    .ravok-inspector { --ravok-header-height: 88px; }
    .ravok-inspector-heading h2 { font-size: 1.58em; }
    .ravok-inspector-grid { grid-template-columns: minmax(0,1fr); }
}
@media(max-width: 460px) {
    .ravok-inspector-body { padding: .6em; }
    .ravok-inspector-heading { padding-inline: .65em 3.2em; }
    .ravok-inspector-heading h2 { font-size: 1.28em; }
    .ravok-inspector-heading .ravok-emblem { flex-basis: 3.4em; height: 3.4em; }
    .ravok-inspector-status { grid-template-columns: minmax(0,1fr); }
    .ravok-wave-key { display: none; }
    .ravok-rail-stop small { font-size: .69em; }
}
@media(max-height: 480px) {
    .ravok-inspector { --ravok-header-height: 74px; }
}
.v3-vfx-disabled .ravok-cannon-meter::before,
.v3-vfx-disabled :is(.ravok-cannon-meter > img,.ravok-cannon-effect g,.ravok-chart-effect g,.ravok-inspector-heading img,.ravok-fuse path) { animation: none; }
@media(prefers-reduced-motion:reduce) {
    .ravok-cannon-meter::before, .ravok-cannon-meter > img, .ravok-cannon-effect g, .ravok-chart-effect g, .ravok-inspector-heading img, .ravok-fuse path { animation: none; }
}
