/* Huarong Pass — carved wooden blocks in a lacquered tray. */
.hr-frame {
  --c: 70px; --f: calc(var(--c) * 0.2); --glow: 0;
  position: relative; flex: none; padding: var(--f); direction: ltr;
  border-radius: calc(var(--c) * 0.22);
  background: repeating-linear-gradient(92deg, rgba(0, 0, 0, 0.07) 0 2px, transparent 2px 9px), linear-gradient(160deg, #6E4525, #432A14);
  box-shadow: inset 0 0 0 1.5px rgba(184, 137, 59, 0.75), inset 0 2px 0 rgba(255, 255, 255, 0.14), 0 14px 30px rgba(0, 0, 0, 0.4);
  touch-action: none;
}
.hr-well {
  position: relative; z-index: 1; width: calc(var(--c) * 4); height: calc(var(--c) * 5);
  border-radius: calc(var(--c) * 0.08);
  background:
    linear-gradient(rgba(234, 217, 168, 0.05) 1px, transparent 1px) 0 0 / var(--c) var(--c),
    linear-gradient(90deg, rgba(234, 217, 168, 0.05) 1px, transparent 1px) 0 0 / var(--c) var(--c),
    #0B1F1C;
  box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.7);
}
.hr-exit {
  position: absolute; bottom: 0; left: calc(var(--f) + var(--c)); width: calc(var(--c) * 2); height: var(--f);
  background: linear-gradient(180deg, #0B1F1C, rgba(234, 217, 168, calc(0.25 + var(--glow) * 0.75)));
  box-shadow: 0 0 calc(var(--c) * 0.6) rgba(234, 217, 168, calc(0.12 + var(--glow) * 0.8));
  transition: box-shadow 0.3s, background 0.3s;
}
.hr-beam {
  position: absolute; bottom: 0; left: var(--c); width: calc(var(--c) * 2); height: calc(var(--c) * 2); pointer-events: none;
  background: radial-gradient(90% 100% at 50% 100%, rgba(234, 217, 168, 0.55), rgba(234, 217, 168, 0) 70%);
  opacity: calc(0.12 + var(--glow) * 0.88); transition: opacity 0.3s;
}
.hr-b {
  position: absolute; left: calc(var(--c) * var(--x)); top: calc(var(--c) * var(--y));
  width: calc(var(--c) * var(--w)); height: calc(var(--c) * var(--h));
  margin: 0; padding: calc(var(--c) * 0.035); border: 0; background: none; cursor: grab; touch-action: none;
  transition: left 0.11s ease-out, top 0.11s ease-out; -webkit-tap-highlight-color: transparent; outline: none;
}
.hr-face {
  display: block; position: relative; width: 100%; height: 100%; border-radius: calc(var(--c) * 0.13);
  background: repeating-linear-gradient(96deg, rgba(60, 30, 8, 0.1) 0 1px, transparent 1px 7px, rgba(60, 30, 8, 0.06) 7px 8px, transparent 8px 13px), linear-gradient(160deg, #C08B55, #8A5A33);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.3), inset 0 -3px 0 rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(0, 0, 0, 0.25), 0 2px 5px rgba(0, 0, 0, 0.5);
  transition: transform 0.12s, filter 0.12s; pointer-events: none;
}
.hr-H .hr-face { background: repeating-linear-gradient(4deg, rgba(40, 20, 5, 0.12) 0 1px, transparent 1px 7px), linear-gradient(160deg, #A06C3A, #6F4526); }
.hr-S .hr-face { background: repeating-linear-gradient(96deg, rgba(120, 90, 40, 0.12) 0 1px, transparent 1px 6px), linear-gradient(160deg, #F1E3B8, #C9AC70); }
.hr-B .hr-face { background: repeating-linear-gradient(96deg, rgba(80, 10, 0, 0.1) 0 1px, transparent 1px 9px), linear-gradient(160deg, #EC6B50, #B23A25); }
.hr-face svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; fill: none; stroke: #4A2C14; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.3)); }
.hr-S .hr-face svg { stroke: #7A5A2A; }
.hr-B .hr-face svg { stroke: #F6ECCB; filter: drop-shadow(0 1.5px 0 rgba(90, 20, 8, 0.7)); }
.hr-face svg .f { fill: currentColor; stroke: none; }
.hr-face svg { color: #4A2C14; }
.hr-S .hr-face svg { color: #7A5A2A; }
.hr-B .hr-face svg { color: #F6ECCB; }
.hr-b.is-drag { z-index: 3; cursor: grabbing; }
.hr-b.is-drag .hr-face { transform: scale(1.03); filter: brightness(1.12); }
.hr-b:focus-visible .hr-face { box-shadow: 0 0 0 3px var(--gold), 0 2px 5px rgba(0, 0, 0, 0.5); }
.hr-b.is-hint .hr-face { animation: hr-pulse 0.9s ease-in-out infinite; }
.hr-b.is-no .hr-face { animation: hr-no 0.25s; }
.hr-b.is-out { top: calc(var(--c) * 4.6); opacity: 0; transition: top 0.6s ease-in, opacity 0.25s 0.4s; z-index: 4; }
.hr-ghost {
  position: absolute; left: calc(var(--c) * var(--x)); top: calc(var(--c) * var(--y));
  width: calc(var(--c) * var(--w)); height: calc(var(--c) * var(--h)); pointer-events: none; z-index: 5;
  border: 3px dashed var(--gold); border-radius: calc(var(--c) * 0.15); box-sizing: border-box;
  background: rgba(234, 217, 168, 0.14); animation: hr-pulse 0.9s ease-in-out infinite;
}
@keyframes hr-pulse { 50% { filter: brightness(1.35); opacity: 0.8; } }
@keyframes hr-no { 30% { transform: translateX(-3px); } 70% { transform: translateX(3px); } }
.hr-stars { color: var(--w-bronze); letter-spacing: 2px; }
@media (prefers-reduced-motion: reduce) { .hr-b, .hr-b.is-out { transition: none; } .hr-b.is-hint .hr-face, .hr-ghost { animation: none; } }
@media (max-height: 420px) { #sub { display: none; } }
@media (max-width: 420px) { html[data-world] body[data-game="huarong"] .fa-title { font-size: 15px; letter-spacing: 0; } }
@media (max-width: 350px) { html[data-world] body[data-game="huarong"] .fa-title { font-size: 13px; } }
