/* Original head-to-head arena, polished with the theme's purple palette. */
.pws-battle-section { position: relative; overflow: hidden; padding: clamp(44px, 6vw, 80px) 0; background: radial-gradient(ellipse at 15% 20%, color-mix(in srgb, var(--primary) 10%, transparent), transparent 55%), radial-gradient(ellipse at 90% 85%, color-mix(in srgb, var(--primary) 8%, transparent), transparent 55%), linear-gradient(135deg, var(--background-2), var(--background)); color: var(--text-main); }
.pws-battle-section *, .pws-battle-section *::before { box-sizing: border-box; }
.pws-battle-section::before { content: ''; position: absolute; inset: 0; opacity: .65; pointer-events: none; background-image: radial-gradient(color-mix(in srgb, var(--primary) 20%, transparent) 1px, transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(transparent, #000, transparent); }
.pws-battle-section > .container { position: relative; }
.pws-battle-heading { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.pws-battle-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--border-highlight); border-radius: 100px; background: var(--card-background); color: var(--primary); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.pws-battle-eyebrow::before { content: ''; width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.pws-battle-heading h2 { margin: 16px 0 14px; color: var(--text-main); font-size: clamp(28px, 3.5vw, 40px); font-weight: 750; line-height: 1.2; letter-spacing: -.035em; }
.pws-battle-heading p { margin: 0; color: var(--text-secondary); font-size: 15px; line-height: 1.7; }
.pws-battle-arena { display: grid; grid-template-columns: minmax(0, 1fr) 60px minmax(0, 1fr); align-items: center; gap: 16px; max-width: 970px; margin: 0 auto; }
.pws-battle-template { position: relative; display: flex; flex-direction: column; min-width: 0; align-self: stretch; padding: 22px; border: 1px solid var(--border); border-radius: 24px; background: linear-gradient(145deg, color-mix(in srgb, var(--primary) 4%, var(--card-background)), var(--card-background)); color: var(--text-main); text-decoration: none; box-shadow: 0 18px 38px -26px color-mix(in srgb, var(--primary) 40%, transparent); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.pws-battle-number { position: absolute; top: -14px; left: 20px; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border: 3px solid var(--card-background); border-radius: 50%; background: var(--primary); color: var(--card-background); font-size: 12px; font-weight: 750; }
.pws-battle-template:last-child .pws-battle-number { left: auto; right: 20px; }
.pws-battle-preview { position: relative; aspect-ratio: 16/9; overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: var(--background-2); }
.pws-battle-image { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.pws-battle-tag { position: absolute; bottom: 10px; left: 10px; padding: 5px 9px; border: 1px solid var(--border-highlight); border-radius: 8px; background: var(--card-background); color: var(--primary); font-size: 11px; font-weight: 600; }
.pws-battle-no-preview { display: grid; place-items: center; height: 100%; color: var(--text-secondary); font-size: 13px; }
.pws-battle-template h3 { margin: 22px 0 7px; font-size: 23px; font-weight: 700; line-height: 1.35; letter-spacing: -.025em; color: var(--text-main); text-align: center; overflow-wrap: anywhere; }
.pws-battle-author { margin: 0 0 22px; text-align: center; color: var(--text-secondary); font-size: 13px; line-height: 1.5; }
.pws-battle-stats { margin-top: auto; padding: 0 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--background-2); }
.pws-battle-stat { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--border); }
.pws-battle-stat:last-child { border: 0; }
.pws-battle-stat-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px; color: var(--text-secondary); font-size: 14px; }
.pws-battle-stat-label small { font-size: 10px; color: var(--text-secondary); }
.pws-battle-stat-value { display: inline-flex; align-items: baseline; gap: 4px; font-size: 23px; font-weight: 750; font-variant-numeric: tabular-nums; }
.pws-battle-score-value { color: var(--primary); }
.pws-battle-stat-value small { font-size: 11px; font-weight: 400; color: var(--text-secondary); }
.pws-battle-unavailable { font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.pws-battle-details { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; padding: 12px 14px; border: 1px solid var(--border-highlight); border-radius: 12px; background: color-mix(in srgb, var(--primary) 7%, var(--card-background)); color: var(--primary); font-size: 13px; font-weight: 600; transition: background-color .35s ease, color .35s ease, box-shadow .35s ease, transform .35s ease; }
.pws-battle-vs { display: grid; place-items: center; width: 60px; height: 60px; border: 1px solid var(--border-highlight); border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); color: var(--card-background); font-size: 16px; font-weight: 800; font-style: italic; box-shadow: 0 12px 24px -12px var(--primary); }
.pws-battle-footer { text-align: center; margin-top: 32px; }
.pws-battle-button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 48px; padding: 13px 24px; border-radius: 100px; background: var(--primary); color: var(--card-background); font-size: 14px; font-weight: 700; text-decoration: none; transition: background-color .2s ease, transform .2s ease; }
.pws-battle-button:hover { background: var(--primary-hover); color: var(--card-background); transform: translateY(-2px); }
.pws-battle-footer p { margin: 14px 0 0; font-size: 12px; color: var(--text-secondary); }
.pws-battle-section a:focus-visible { outline: 2px solid var(--primary); outline-offset: 5px; }
@media (hover: hover) and (pointer: fine) { .pws-battle-template:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: 0 20px 40px -22px color-mix(in srgb, var(--primary) 40%, transparent); } .pws-battle-template:hover .pws-battle-image { transform: scale(1.03); } .pws-battle-template:hover .pws-battle-details { background: color-mix(in srgb, var(--primary) 12%, var(--card-background)); } }
@media (max-width: 800px) { .pws-battle-arena { gap: 12px; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); } .pws-battle-vs { width: 44px; height: 44px; font-size: 13px; } .pws-battle-template { padding: 16px; } .pws-battle-template h3 { font-size: 20px; } .pws-battle-stat-label { font-size: 12px; } .pws-battle-stat-value { font-size: 20px; } }
@media (max-width: 600px) { .pws-battle-heading { margin-bottom: 30px; } .pws-battle-arena { grid-template-columns: minmax(0, 1fr); gap: 18px; max-width: 420px; } .pws-battle-vs { justify-self: center; width: 46px; height: 46px; } .pws-battle-template { padding: 20px; } .pws-battle-template h3 { font-size: 22px; } .pws-battle-stat-label { font-size: 14px; } .pws-battle-stat-value { font-size: 23px; } .pws-battle-heading p { font-size: 14px; } .pws-battle-footer { margin-top: 28px; } .pws-battle-button { width: 100%; max-width: 420px; padding: 13px 16px; font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .pws-battle-template, .pws-battle-image, .pws-battle-details, .pws-battle-button { transition: none; } .pws-battle-template:hover, .pws-battle-button:hover, .pws-battle-template:hover .pws-battle-image { transform: none; } }

/* Floating versus badge and paired hover behavior from the battle reference. */
.pws-battle-arena { position: relative; isolation: isolate; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.pws-battle-vs { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border: 8px solid var(--background); background: linear-gradient(135deg, var(--primary), var(--accent)); color: var(--card-background); font-size: 23px; box-shadow: 0 0 0 1px var(--border-highlight), 0 12px 28px -16px var(--primary); }
.pws-battle-template { z-index: 0; transform-origin: center; transition: transform .55s cubic-bezier(.22,.68,0,1), opacity .45s ease, border-color .4s ease, box-shadow .55s ease; }
.pws-battle-number { width: 38px; height: 38px; top: -16px; font-size: 15px; box-shadow: 0 6px 14px -8px var(--primary); }
.pws-battle-details > span { transition: transform .25s ease; }
@media (hover: hover) and (pointer: fine) {
    .pws-battle-template:hover { transform: translateY(-6px) scale(1.035); z-index: 3; box-shadow: 0 26px 48px -24px color-mix(in srgb, var(--primary) 45%, transparent); }
    .pws-battle-arena:has(.pws-battle-template:hover) .pws-battle-template:not(:hover) { transform: scale(.97); opacity: .82; }
    .pws-battle-template:hover .pws-battle-details > span { transform: translateX(4px); }
}
@media (max-width: 800px) { .pws-battle-arena { gap: 36px; } .pws-battle-vs { width: 60px; height: 60px; border-width: 6px; font-size: 19px; } }
@media (max-width: 600px) { .pws-battle-arena { grid-template-columns: minmax(0, 1fr); gap: 18px; } .pws-battle-vs { position: relative; top: auto; left: auto; transform: none; width: 62px; height: 62px; } }
@media (prefers-reduced-motion: reduce) { .pws-battle-template, .pws-battle-details > span { transition: none; } .pws-battle-arena:has(.pws-battle-template:hover) .pws-battle-template:not(:hover), .pws-battle-template:hover, .pws-battle-template:hover .pws-battle-details > span { transform: none; opacity: 1; } }

/* VS overlaps both edges at rest; the active card rises above it. */
.pws-battle-vs { z-index: 2; pointer-events: none; line-height: 1; }
.pws-battle-section { box-shadow: inset 0 1px 0 var(--border-highlight), inset 0 -1px 0 var(--border-highlight); }
.pws-battle-stats { margin-bottom: 0; }
.pws-battle-stat-value { margin: 0; }
.pws-battle-details { box-shadow: inset 0 1px 0 color-mix(in srgb, var(--primary) 8%, transparent); }
.pws-battle-template:focus-visible .pws-battle-details { background: var(--primary); color: var(--card-background); }
@media (hover: hover) and (pointer: fine) {
    .pws-battle-template .pws-battle-details:hover { background: var(--primary); color: var(--card-background); transform: translateY(-2px); box-shadow: 0 8px 18px -10px var(--primary); }
    .pws-battle-details:hover > span { transform: translateX(6px); }
}
@media (prefers-reduced-motion: reduce) { .pws-battle-template .pws-battle-details:hover { transform: none; } }
.pws-battle-template h3 { font-size: clamp(20px, 2.2vw, 24px); line-height: 1.3; }
.pws-battle-author { font-size: 14px; line-height: 1.6; }
.pws-battle-stat-label { font-size: 14px; line-height: 1.5; }
.pws-battle-stat-label small { font-size: 11px; }
.pws-battle-stat-value { font-size: clamp(24px, 2.4vw, 28px); line-height: 1.25; }
.pws-battle-stat-value small { font-size: 12px; }
.pws-battle-details { font-size: 14px; line-height: 1.5; }
.pws-battle-button { font-size: 15px; line-height: 1.5; }
@media (min-width: 601px) and (max-width: 800px) {
    .pws-battle-template { padding: 14px; }
    .pws-battle-template h3 { font-size: 19px; }
    .pws-battle-stats { padding-inline: 10px; }
    .pws-battle-stat { gap: 8px; }
    .pws-battle-stat-label { font-size: 13px; }
    .pws-battle-stat-value { font-size: 23px; }
}
@media (max-width: 600px) {
    .pws-battle-heading h2 { font-size: clamp(27px, 7vw, 32px); }
    .pws-battle-template h3 { font-size: 21px; }
    .pws-battle-stat-value { font-size: 26px; }
    .pws-battle-button { font-size: 14px; }
}
