/* Visor 3D Rairon */
.r3d { --r3d-ink: #141414; --r3d-orange: #f05a1a; margin-top: 1.4rem; max-width: 100%; }
.r3d .viewer { position: relative; border-radius: 16px; overflow: hidden; background: #e7e5e1; aspect-ratio: 16 / 9.5; max-width: 100%; min-height: 420px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.r3d .viewer::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1; background: radial-gradient(130% 100% at 50% 40%, rgba(0,0,0,0) 60%, rgba(0,0,0,.18) 100%); }
.r3d .viewer canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.r3d .viewer canvas:active { cursor: grabbing; }
.r3d .viewer:fullscreen { border-radius: 0; aspect-ratio: auto; }
.r3d .badge { position: absolute; top: 16px; left: 16px; display: flex; gap: 6px; z-index: 3; }
.r3d .badge span { font: 600 .7rem Inter, system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; background: var(--r3d-ink); color: #fff; padding: .5rem .8rem; border-radius: 4px; }
.r3d .badge span.o { background: var(--r3d-orange); }
.r3d .tools { position: absolute; top: 16px; right: 16px; display: grid; gap: 8px; z-index: 3; }
.r3d .tool { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(0,0,0,.08); border-radius: 6px; background: rgba(250,249,247,.92); color: var(--r3d-ink); cursor: pointer; padding: 0; box-shadow: 0 2px 8px rgba(0,0,0,.08); transition: transform .15s; }
.r3d .tool:hover { transform: translateY(-1px); }
.r3d .tool[aria-pressed="true"] { background: var(--r3d-ink); color: #fff; }
.r3d .tool svg { width: 20px; height: 20px; }
.r3d .tool:focus-visible, .r3d .opt:focus-visible { outline: 2px solid var(--r3d-orange); outline-offset: 2px; }
.r3d .tip { position: absolute; right: 54px; top: 50%; transform: translateY(-50%); white-space: nowrap; font: 500 .75rem Inter, sans-serif; background: var(--r3d-ink); color: #fff; padding: .3rem .55rem; border-radius: 4px; opacity: 0; pointer-events: none; transition: opacity .15s; }
.r3d .tool:hover .tip { opacity: 1; }
.r3d .hint { position: absolute; left: 16px; top: 58px; font: 500 .76rem Inter, sans-serif; color: #4b4b4b; background: rgba(250,249,247,.85); padding: .4rem .7rem; border-radius: 4px; pointer-events: none; transition: opacity .3s; z-index: 3; }
.r3d .loading { position: absolute; inset: 0; display: grid; place-items: center; color: #555; font: 500 .9rem Inter, sans-serif; z-index: 2; }
.r3d .pin { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: .45rem; pointer-events: none; white-space: nowrap; transition: opacity .25s; z-index: 2; }
.r3d .pin b { width: 22px; height: 22px; border-radius: 50%; background: var(--r3d-orange); color: #fff; font: 700 .72rem/22px Inter, sans-serif; text-align: center; box-shadow: 0 0 0 4px rgba(240,90,26,.22), 0 4px 10px rgba(0,0,0,.25); }
.r3d .pin span { font: 500 .74rem Inter, sans-serif; color: #fff; background: rgba(20,20,20,.86); padding: .22rem .55rem; border-radius: 4px; }
.r3d .pins-off .pin { opacity: 0; }
.r3d .bar { position: relative; z-index: 4; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: max-content; max-width: calc(100% - 32px); margin: -78px auto 0; padding: 8px; background: rgba(250,249,247,.94); border: 1px solid rgba(0,0,0,.06); border-radius: 12px; box-shadow: 0 12px 34px rgba(0,0,0,.22); }
.r3d .seg { display: inline-flex; gap: 4px; background: #ebe8e3; border-radius: 9px; padding: 4px; }
.r3d .opt { display: inline-flex; align-items: center; gap: .45rem; border: 0; background: transparent; color: #3a3a3a; font: 600 .84rem Inter, sans-serif; padding: .6rem .95rem; border-radius: 7px; cursor: pointer; }
.r3d .opt svg { width: 17px; height: 17px; flex: none; }
.r3d .opt:hover { color: var(--r3d-ink); background: rgba(255,255,255,.6); }
.r3d .opt[aria-pressed="true"] { background: var(--r3d-ink); color: #fff; }
.r3d .opt.solo { background: #ebe8e3; }
.r3d .opt.solo[aria-pressed="true"] { background: var(--r3d-orange); }
.r3d .legend { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; padding-top: 1rem; color: #a8a8a8; font-size: .82rem; }
.r3d .legend b { color: #f2f2f2; font-weight: 600; }
.r3d-specs { width: 100%; max-width: 860px; border-collapse: collapse; background: #151515; border: 1px solid #2a2a2a; border-radius: 14px; overflow: hidden; font-size: .93rem; margin-top: 1.6rem; }
.r3d-specs th, .r3d-specs td { text-align: left; padding: .75rem 1rem; border-bottom: 1px solid #2a2a2a; vertical-align: top; color: #e6e6e6; }
.r3d-specs tr:last-child th, .r3d-specs tr:last-child td { border-bottom: 0; }
.r3d-specs th { color: #a8a8a8; font-weight: 500; width: 38%; }
@media (max-width: 820px) {
  .r3d .viewer { aspect-ratio: 4 / 5; min-height: 420px; border-radius: 14px; }
  .r3d .pin span, .r3d .tip, .r3d .hint { display: none; }
  .r3d .tool { width: 40px; height: 40px; }
  .r3d .bar { width: 100%; max-width: 100%; margin: 12px 0 0; background: #f4f2ee; }
  .r3d .seg { flex: 1 1 100%; }
  .r3d .seg .opt, .r3d .opt.solo { flex: 1; justify-content: center; }
}
