/* VELTRIX / diagonal circuit room-selection system */
.vx-workspace { position: relative; z-index: 1; width: min(1280px,100%); margin-inline: auto; }
.vx-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin: 0 0 30px; }
.vx-section-heading h2 { font-size: clamp(26px,4vw,38px); margin: 8px 0 10px; color: var(--text-hi); letter-spacing: 1px; }
.vx-section-heading p:not(.eyebrow), .vx-entry-card > p:not(.eyebrow) { color: #a8b19c; line-height: 1.8; }
.vx-channel { color: #ffb06a; font: 12px Consolas,monospace; letter-spacing: 3px; border-bottom: 1px solid #ffb06a55; padding: 12px 0; }
.vx-entry-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.vx-entry-card { position: relative; overflow: hidden; padding: clamp(24px,4vw,44px); border: 1px solid #c9ff4a35; border-radius: 3px 32px 3px 32px; background: radial-gradient(ellipse at 100% 0%,#c9ff4a13,transparent 65%),#101510; }
.vx-entry-direct { border-color: #ff8e5b40; background: radial-gradient(ellipse at 0% 100%,#ff8e5b12,transparent 65%),#151410; }
.vx-entry-card h3 { font-size: 30px; margin: 10px 0 16px; color: var(--text-hi); }
.vx-entry-card > p:not(.eyebrow) { min-height: 52px; margin-bottom: 32px; max-width: 360px; }
.vx-entry-card button { width: 100%; display: flex; justify-content: space-between; align-items: center; min-height: 50px; }
.vx-entry-art, .vx-direct-art { height: 90px; display: flex; align-items: center; margin-bottom: 34px; gap: 12px; }
.vx-entry-art span { width: 40px; height: 64px; border: 2px solid #c9ff4a; transform: skew(-28deg); background: linear-gradient(0deg,#c9ff4a22,transparent); box-shadow: 6px 0 #c9ff4a0a; animation: vx-circuit-pulse 3s ease-in-out infinite; }
.vx-entry-art span:nth-child(2) { height: 80px; animation-delay: .3s; }
.vx-entry-art span:nth-child(3) { height: 48px; border-color: #ff8e5b; animation-delay: .6s; }
.vx-direct-art span { display: grid; place-items: center; width: 50px; height: 50px; border: 1px solid #ff8e5b66; color: #ffb06a; font: 20px Consolas,monospace; border-radius: 3px 14px; }
.vx-direct-art i { width: 28px; height: 1px; background: #ff8e5b66; }
.vx-outline-btn, .vx-back-btn, .vx-text-btn { font: inherit; cursor: pointer; }
.vx-outline-btn { padding: 14px 22px; border: 1px solid #ff8e5b77; border-radius: 3px 13px; color: #ffc38b; background: #ff8e5b09; }
.vx-outline-btn:hover { border-color: #ffb06a; background: #ff8e5b14; }
.vx-back-btn { display: block; border: 0; background: none; padding: 12px 0; margin-bottom: 18px; color: #bac7ae; text-align: left; }
.vx-back-btn:hover, .vx-text-btn:hover { color: #e2ff9b; }
.vx-text-btn { display: block; padding: 10px 0 0; border: 0; color: #c9ff4a; background: transparent; font-size: 12px; }
.vx-scan-console { display: grid; grid-template-columns: minmax(260px,.85fr) minmax(0,1.4fr); border: 1px solid #c9ff4a33; border-radius: 3px 24px; overflow: hidden; background: #101510; }
.vx-scan-input { padding: 28px; border-right: 1px solid #c9ff4a22; }
.vx-scan-input label { display: block; color: #dae3cd; margin-bottom: 12px; }
.vx-scan-input select { width: 100%; min-height: 48px; padding: 12px; color: #f3f4e9; border: 1px solid #c9ff4a44; border-radius: 3px 12px; background: #080c08; font: inherit; font-size: 16px; }
.vx-range { margin: 12px 0 22px; color: #ffb06a; font-size: 12px; }
.vx-scan-input .primary-btn { width: 100%; }
.vx-scan-display { display: grid; grid-template-columns: 130px minmax(0,1fr); align-items: center; gap: 28px; padding: 26px 30px; background: linear-gradient(110deg,transparent,#c9ff4a06); }
.vx-scan-display h3 { font-size: 22px; color: #f3f4e9; margin: 10px 0; }
.vx-scan-display p:not(.eyebrow) { color: #8b9983; font-size: 12px; }
.vx-scanner { position: relative; width: 120px; height: 120px; display: grid; place-items: center; transform: rotate(-15deg); }
.vx-scanner i { position: absolute; inset: 0; border: 1px solid #c9ff4a33; border-radius: 3px 25px; transform: rotate(45deg); }
.vx-scanner i:nth-child(2) { inset: 17px; border-color: #ff8e5b55; }
.vx-scanner i:nth-child(3) { inset: 34px; border-color: #c9ff4a99; }
.vx-scanner span { width: 12px; height: 12px; background: #c9ff4a; box-shadow: 0 0 30px #c9ff4a66; transform: rotate(45deg); }
.vx-scan-display.is-scanning .vx-scanner i { animation: vx-map-rotate 3s linear infinite; }
.vx-scan-display.is-scanning .vx-scanner i:nth-child(2) { animation-direction: reverse; }
.vx-scan-progress { margin-top: 24px; height: 4px; overflow: hidden; background: #c9ff4a17; }
.vx-scan-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg,#c9ff4a,#ff8e5b); }
#scanPercent { display: block; text-align: right; color: #c9ff4a; font: 11px Consolas,monospace; margin-top: 8px; }
.vx-results-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 32px 0 20px; }
.vx-results-meta h3 { color: #edf3e5; font-size: 17px; }
.vx-results-meta p { margin-top: 8px; color: #95a38b; font-size: 12px; }
.vx-expiry { flex-shrink: 0; font: 12px Consolas,monospace; color: #c9ff4a; border: 1px solid #c9ff4a33; padding: 8px 12px; border-radius: 3px 12px; }
.vx-rank-legend { display: flex; gap: 10px; }
.vx-rank-legend img { width: 60px; height: 60px; object-fit: contain; }
.vx-room-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.vx-room-card { --rank-color: #96bbaa; position: relative; min-width: 0; overflow: hidden; padding: 20px; border: 1px solid color-mix(in srgb,var(--rank-color) 30%,transparent); border-radius: 3px 23px 3px 23px; background: #101612; animation: vx-card-enter .4s both; animation-delay: var(--enter-delay,0ms); }
.vx-room-card::before { content: ''; position: absolute; top: 0; left: 0; width: 34%; height: 2px; background: var(--rank-color); pointer-events: none; }
.vx-room-card[data-rank="SSS"] { --rank-color: #ffce75; background: radial-gradient(ellipse at 95% 5%,#ffce751c,transparent 70%),#17170f; border-color: #ffce7577; box-shadow: 0 0 24px #ffce7512,inset 0 0 0 3px #c9ff4a0b; }
.vx-room-card[data-rank="S"] { --rank-color: #c9ff4a; background: radial-gradient(ellipse at 100% 0%,#c9ff4a0e,transparent 70%),#11170e; box-shadow: 0 0 18px #c9ff4a08; }
.vx-room-card[data-rank="A"] { --rank-color: #ff9e70; background: #17140f; }
.vx-room-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 22px; min-height: 82px; }
.vx-room-head small { display: block; font: 9px Consolas,monospace; letter-spacing: 2px; color: #85917b; margin-bottom: 8px; }
.vx-room-head h4 { color: #f3f4e9; font: 700 clamp(21px,2.3vw,30px)/1 Consolas,monospace; }
.vx-rank-image { display: block; width: 84px; height: 84px; object-fit: contain; flex-shrink: 0; }
[data-rank="SSS"] .vx-rank-image { animation: vx-rank-float 4s ease-in-out infinite; }
.vx-room-metrics { display: grid; gap: 15px; }
.vx-metric-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; margin-bottom: 7px; }
.vx-metric-label dt { color: #aeb6a5; }
.vx-metric-label dd { color: #e7eddf; font: 12px Consolas,monospace; }
.vx-metric-label dd span { color: #687361; font-size: 10px; }
.vx-metric-track { height: 3px; background: #ffffff08; overflow: hidden; }
.vx-metric-track i { display: block; height: 100%; background: var(--rank-color); opacity: .8; transform-origin: left; animation: vx-meter-in .6s ease-out both; animation-delay: var(--enter-delay,0ms); }
.vx-use-room { margin-top: 24px; width: 100%; min-height: 44px; border: 1px solid color-mix(in srgb,var(--rank-color) 45%,transparent); background: transparent; color: var(--rank-color); font-family: inherit; font-size: 12px; border-radius: 3px 12px; cursor: pointer; }
.vx-use-room:hover { background: color-mix(in srgb,var(--rank-color) 9%,transparent); border-color: var(--rank-color); }
.vx-selected { display: flex; gap: 15px; align-items: center; border: 1px solid #c9ff4a44; border-radius: 3px 16px; padding: 14px; margin-bottom: 20px; background: #c9ff4a06; }
.vx-selected img { object-fit: contain; flex-shrink: 0; }
.vx-selected strong { display: block; color: #f3f4e9; line-height: 1.6; margin-top: 6px; }
.vx-selected .eyebrow { font-size: 9px; }
.vx-notice { color: #ffb06a; font-size: 12px; line-height: 1.7; }
.vx-notice:not(:empty) { margin-bottom: 18px; }
.vx-result-matrix { display: flex; align-items: center; gap: 15px; border-bottom: 1px solid #c9ff4a22; padding-bottom: 18px; margin-bottom: 20px; }
.vx-result-matrix img { width: 72px; height: 72px; object-fit: contain; }
.vx-result-matrix strong { display: block; margin-top: 7px; color: #e8efd9; }
.vx-room-card button:focus-visible, .vx-outline-btn:focus-visible, .vx-back-btn:focus-visible, .vx-text-btn:focus-visible { outline: 2px solid #c9ff4a; outline-offset: 4px; }
@keyframes vx-card-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes vx-meter-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes vx-map-rotate { to { transform: rotate(405deg); } }
@keyframes vx-circuit-pulse { 50% { opacity: .55; transform: skew(-28deg) translateY(-6px); } }
@keyframes vx-rank-float { 50% { transform: translateY(-4px); } }
@media (max-width: 1120px) { .vx-room-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 860px) { .vx-room-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .vx-scan-console { grid-template-columns: 1fr; } .vx-scan-input { border-right: 0; border-bottom: 1px solid #c9ff4a22; } }
@media (max-width: 600px) {
  .vx-entry-grid { grid-template-columns: 1fr; gap: 16px; } .vx-entry-art,.vx-direct-art { height: 64px; margin-bottom: 24px; }
  .vx-entry-card h3 { font-size: 25px; } .vx-entry-card > p:not(.eyebrow) { min-height: auto; margin-bottom: 24px; }
  .vx-section-heading { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 22px; } .vx-channel { display: none; }
  .vx-rank-legend { gap: 9px; } .vx-rank-legend img { width: 52px; height: 52px; }
  .vx-scan-input { padding: 22px 18px; } .vx-scan-display { grid-template-columns: 72px minmax(0,1fr); gap: 22px; padding: 24px 22px; }
  .vx-scanner { width: 64px; height: 64px; } .vx-scanner i:nth-child(2) { inset: 9px; } .vx-scanner i:nth-child(3) { inset: 20px; }
  .vx-scan-display h3 { font-size: 18px; } .vx-scan-display .eyebrow { font-size: 8px; letter-spacing: 1px; }
  .vx-results-meta { align-items: flex-start; flex-direction: column; } .vx-results-meta h3 { font-size: 15px; }
  .vx-room-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; } .vx-room-card { padding: 13px 11px; border-radius: 3px 18px; }
  .vx-room-head { flex-direction: column-reverse; align-items: flex-start; gap: 2px; margin-bottom: 18px; } .vx-rank-image { width: 82px; height: 82px; align-self: flex-end; }
  .vx-room-head h4 { font-size: 25px; } .vx-room-head small { font-size: 8px; letter-spacing: 1px; } .vx-metric-label { gap: 2px; font-size: 10px; } .vx-metric-label dd { font-size: 11px; } .vx-metric-label dd span { font-size: 9px; }
  .vx-selected { padding: 10px; gap: 10px; } .vx-selected strong { font-size: 12px; } .vx-selected img { width: 60px; height: 60px; }
}
@media (max-width: 350px) { .vx-room-grid { grid-template-columns: 1fr; } .vx-room-head { flex-direction: row; align-items: center; } }
@media (prefers-reduced-motion: reduce) { .veltrix-theme .vx-workspace *, .veltrix-theme .vx-workspace *::before { animation: none !important; transition: none !important; } }
