/* /R5/magic/ – styles matching the other R5 pages (system fonts, dark + gold/sage). */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #080810; color: #e0e0e0; overflow-x: hidden; line-height: 1.5; }
a { color: #d4af37; }
img, video { max-width: 100%; display: block; }
.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 110% 80% at 18% 12%, rgba(123,155,123,0.16) 0%, transparent 62%),
    radial-gradient(ellipse 90% 70% at 82% 88%, rgba(212,175,55,0.10) 0%, transparent 65%),
    radial-gradient(ellipse 100% 90% at 50% 50%, rgba(100,140,200,0.08) 0%, transparent 70%); }
.glow-1 { position: fixed; top: -30%; left: -20%; width: 60%; height: 60%; background: radial-gradient(circle, rgba(123,155,123,0.06) 0%, transparent 70%); z-index: 0; pointer-events: none; }
.glow-2 { position: fixed; bottom: -30%; right: -20%; width: 60%; height: 60%; background: radial-gradient(circle, rgba(212,175,55,0.04) 0%, transparent 70%); z-index: 0; pointer-events: none; }

.site-header { padding: 14px max(20px, calc((100% - 1200px)/2)); display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: rgba(10,10,15,0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(123,155,123,0.12); position: sticky; top: 0; z-index: 100; }
.logo { display: flex; align-items: center; gap: 12px; font-size: 1.3em; font-weight: 700; color: #fff; text-decoration: none; }
.logo-icon { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.logo-icon img { width: 100%; height: 100%; object-fit: cover; }
.site-header nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.site-header nav a { color: #888; text-decoration: none; font-size: 0.9em; transition: color 0.3s; }
.site-header nav a:hover { color: #d4af37; }
.site-header nav a.back-link { color: #d4af37; border: 1px solid rgba(212,175,55,0.4); background: rgba(212,175,55,0.06); padding: 7px 14px; border-radius: 8px; font-weight: 600; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; position: relative; z-index: 1; }
.hero { padding: 40px 0 10px; text-align: center; }
.hero-tagline { font-size: 0.95em; color: #d4af37; margin-bottom: 12px; letter-spacing: 2px; text-transform: uppercase; }
.hero h1 { font-size: 3em; line-height: 1.15; color: #fff; margin-bottom: 14px; }
.hero h1 .accent { color: #7b9b7b; display: block; }
.hero-sub { max-width: 760px; margin: 0 auto 14px; color: #ccc; font-size: 1.15em; line-height: 1.5; }
.hero-legal-note { max-width: 760px; margin: 0 auto 10px; font-size: 0.88em; line-height: 1.45; color: #999; }
.preview-flag { display: inline-block; margin: 0 auto 16px; font-size: 0.78em; letter-spacing: 1.5px; text-transform: uppercase; color: #e2c15a;
  border: 1px dashed rgba(212,175,55,0.5); border-radius: 50px; padding: 4px 12px; }

/* annotated rig */
.rig { margin: 22px auto 0; max-width: 1200px; text-align: left; }
.rig-stage { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid rgba(212,175,55,0.25); background: #111; }
.rig-stage img { width: 100%; height: auto; }
.hs { position: absolute; transform: translate(-50%, -50%); width: 38px; height: 38px; border-radius: 50%; border: 2px solid #0a0a0f;
  background: #d4af37; color: #0a0a0f; font: 800 17px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; cursor: pointer;
  box-shadow: 0 0 0 4px rgba(212,175,55,0.28), 0 2px 10px rgba(0,0,0,0.6); transition: transform 0.15s, box-shadow 0.15s; }
.hs:hover, .hs:focus-visible { transform: translate(-50%, -50%) scale(1.12); outline: none; box-shadow: 0 0 0 6px rgba(212,175,55,0.45), 0 2px 10px rgba(0,0,0,0.6); }
.hs[aria-expanded="true"] { background: #fff; box-shadow: 0 0 0 6px rgba(255,255,255,0.45), 0 2px 10px rgba(0,0,0,0.6); }
.hs::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(212,175,55,0.7); animation: pulse 2.4s ease-out infinite; }
.hs[aria-expanded="true"]::after { display: none; }
@keyframes pulse { 0% { transform: scale(0.9); opacity: 0.9; } 100% { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hs::after { animation: none; display: none; } }
.rig-panel { margin-top: 12px; min-height: 84px; padding: 14px 18px; border-radius: 12px; border: 1px solid rgba(212,175,55,0.45); border-left-width: 4px;
  background: rgba(212,175,55,0.07); color: #f0e2b0; line-height: 1.55; }
.rig-panel h3 { color: #fff; font-size: 1.08em; margin-bottom: 3px; }
.rig-panel .n { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: #d4af37; color: #0a0a0f; font-weight: 800; font-size: 0.85em;
  align-items: center; justify-content: center; margin-right: 8px; vertical-align: 2px; }
.rig-panel p { color: #ddd; font-size: 0.95em; }
.rig-hint { color: #999; font-size: 0.88em; margin-top: 8px; }
.rig-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px 26px; margin-top: 14px; counter-reset: rl; }
.rig-list li { color: #aaa; font-size: 0.9em; line-height: 1.45; }
.rig-list button { all: unset; cursor: pointer; display: flex; gap: 10px; align-items: baseline; padding: 4px 0; }
.rig-list button:focus-visible { outline: 2px solid #d4af37; outline-offset: 2px; border-radius: 4px; }
.rig-list .n { flex-shrink: 0; display: inline-flex; width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(212,175,55,0.6); color: #d4af37;
  font-weight: 700; font-size: 0.8em; align-items: center; justify-content: center; }
.rig-list b { color: #e8e8e8; font-weight: 600; }
.credit { color: #777; font-size: 0.8em; margin-top: 10px; }

.section { padding: 46px 0; scroll-margin-top: 70px; }
.section-header { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.section-line { width: 40px; height: 2px; background: linear-gradient(90deg, #7b9b7b, #d4af37); border-radius: 1px; flex-shrink: 0; }
.section-label { font-size: 0.75em; text-transform: uppercase; letter-spacing: 3px; color: #7b9b7b; font-weight: 600; }
.section-title { font-size: 1.9em; color: #fff; font-weight: 700; margin-bottom: 10px; line-height: 1.2; }
.section-text { color: #aaa; line-height: 1.75; max-width: 780px; margin-bottom: 18px; }
.section-text strong { color: #e8e8e8; }
.section-text + .section-text { margin-top: -4px; }

.intro-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }
figure.ph { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; overflow: hidden; }
figure.ph img, figure.ph video { width: 100%; height: auto; }
.rig-stage img { height: auto; }
figure.ph figcaption { color: #999; font-size: 0.85em; padding: 10px 14px 12px; line-height: 1.5; }
figure.ph figcaption b { color: #ddd; font-weight: 600; }

.video-card { margin-top: 22px; display: flex; gap: 18px; align-items: center; padding: 18px 20px; border-radius: 14px;
  border: 1px dashed rgba(212,175,55,0.45); background: linear-gradient(135deg, rgba(212,175,55,0.07), rgba(123,155,123,0.05)); }
.video-card .play { flex-shrink: 0; width: 58px; height: 58px; border-radius: 50%; border: 2px solid rgba(212,175,55,0.6); display: flex; align-items: center; justify-content: center; opacity: 0.8; }
.video-card .play svg { width: 22px; height: 22px; margin-left: 4px; fill: #d4af37; }
.video-card h3 { color: #fff; font-size: 1.15em; margin-bottom: 2px; }
.video-card p { color: #aaa; font-size: 0.92em; line-height: 1.5; }

.tricks { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.trick { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.trick:hover { border-color: rgba(212,175,55,0.3); }
.trick img, .trick video { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: #111; }
.trick img.pos-top { object-position: center 28%; }
.trick-body { padding: 14px 16px 16px; }
.trick-k { color: #d4af37; font-size: 0.75em; text-transform: uppercase; letter-spacing: 1.6px; font-weight: 700; }
.trick h3 { color: #fff; font-size: 1.18em; margin: 3px 0 6px; line-height: 1.3; }
.trick p { color: #bbb; font-size: 0.92em; line-height: 1.6; }
.trick p + p { margin-top: 8px; }
.trick .cap { color: #777; font-size: 0.78em; margin-top: 10px; }
.quote { margin: 10px 0 2px; padding: 8px 12px; border-left: 3px solid #7b9b7b; background: rgba(123,155,123,0.07); color: #cfe0cf; font-size: 0.9em; border-radius: 0 8px 8px 0; }

.tag { display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.4px; padding: 1px 8px; border-radius: 4px; vertical-align: middle; border: 1px solid; white-space: nowrap; line-height: 1.6; }
.tag-seen { color: #9fc79f; border-color: rgba(123,155,123,0.5); background: rgba(123,155,123,0.1); }
.tag-gen { color: #e2c15a; border-color: rgba(212,175,55,0.45); background: rgba(212,175,55,0.08); }
.tag-told { color: #9db8e0; border-color: rgba(100,140,200,0.5); background: rgba(100,140,200,0.1); }
.key { color: #888; font-size: 0.85em; margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }

.other-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 26px; align-items: start; }
.poss { list-style: none; display: grid; gap: 12px; }
.poss li { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 12px 16px; }
.poss h3 { color: #fff; font-size: 1.02em; margin-bottom: 3px; }
.poss p { color: #bbb; font-size: 0.9em; line-height: 1.6; }
.callout { margin: 16px 0 0; padding: 12px 16px; border-radius: 10px; border: 1px solid rgba(212,175,55,0.45); border-left-width: 4px;
  background: rgba(212,175,55,0.07); color: #f0e2b0; line-height: 1.6; font-size: 0.92em; }

.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid rgba(255,255,255,0.08); }
table.vs { width: 100%; border-collapse: collapse; min-width: 560px; }
table.vs th, table.vs td { text-align: left; padding: 12px 16px; vertical-align: top; line-height: 1.5; font-size: 0.93em; }
table.vs thead th { background: rgba(212,175,55,0.1); color: #d4af37; font-size: 0.78em; text-transform: uppercase; letter-spacing: 1.4px; }
table.vs tbody tr { border-top: 1px solid rgba(255,255,255,0.06); }
table.vs tbody tr:nth-child(even) { background: rgba(255,255,255,0.02); }
table.vs td:first-child { color: #ddd; width: 46%; }
table.vs td:last-child { color: #bbb; }
.table-note { color: #888; font-size: 0.84em; margin-top: 10px; max-width: 780px; }

.moment { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; align-items: center; }
.moment p.big { color: #ddd; font-size: 1.12em; line-height: 1.75; }

.src-list { list-style: none; display: grid; gap: 8px; font-size: 0.9em; max-width: 900px; }
.src-list li { color: #999; line-height: 1.5; }
.src-list a { color: #ddd; text-decoration: none; border-bottom: 1px dotted rgba(212,175,55,0.6); }
.src-list a:hover { color: #d4af37; }
.src-list .pub { color: #777; }

.site-footer { position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,0.06); padding: 34px 40px 40px; text-align: center; color: #555; font-size: 0.85em; margin-top: 30px; }
.footer-logo { justify-content: center; margin-bottom: 14px; font-size: 1.1em; }
.footer-logo .logo-icon { width: 32px; height: 32px; }
.footer-note { max-width: 760px; margin: 0 auto 8px; line-height: 1.6; color: #777; }
.footer-links { margin: 14px 0 10px; }
.footer-links a { color: #888; text-decoration: none; margin: 0 12px; transition: color 0.3s; display: inline-block; padding: 4px 0; }
.footer-links a:hover { color: #d4af37; }

@media (max-width: 1000px) {
  .tricks { grid-template-columns: 1fr; }
  .trick { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .trick img, .trick video { height: 100%; aspect-ratio: auto; min-height: 220px; }
}
@media (max-width: 900px) {
  .site-header { flex-wrap: wrap; padding: 10px 16px; }
  .site-header nav { width: 100%; justify-content: center; gap: 14px; padding-top: 8px; border-top: 1px solid rgba(123,155,123,0.08); }
  .site-header nav a { font-size: 0.82em; }
  .intro-grid, .other-grid, .moment { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .container { padding: 0 16px; overflow-x: clip; }
  .hero { padding: 24px 0 6px; }
  .hero h1 { font-size: 1.95em; }
  .hero-sub { font-size: 1.02em; }
  .section { padding: 34px 0; }
  .section-title { font-size: 1.45em; }
  .hs { width: 28px; height: 28px; font-size: 13px; border-width: 1.5px; }
  .rig-list { grid-template-columns: 1fr; }
  .trick { display: flex; }
  .trick img, .trick video { aspect-ratio: 4 / 3; height: auto; min-height: 0; }
  .video-card { padding: 14px; gap: 14px; }
  table.vs { min-width: 0; }
  table.vs th, table.vs td { padding: 10px 10px; font-size: 0.86em; }
  .video-card .play { width: 46px; height: 46px; }
  .site-footer { padding: 28px 18px 34px; }
  .footer-links a { margin: 0 8px; }
}
@media (max-width: 480px) {
  .logo { font-size: 1.1em; }
  .site-header nav { gap: 10px; }
}
