/* ===========================================================================
   assets/ui/hornclaw.css - THE HORNCLAW'S SCREENS (js/hornclaw-bench.js): the
   Fleshsmith's Slab, where one is raised from unicorn carcasses, and the Claws
   tab on its war machine page, with the god's power wheel.

   Goliath, 2026-11-09 17:00Z ("Looks great. Let's do it.", plan
   https://claude.ai/artifact/F9xhkustTYNVpQ1Wk8RuXX). Built to the readability
   rules (docs/READABILITY.md): no word under 16 px, every button 48 px, clear
   of a phone's camera indent; the wheel's spin and the raise stop when the
   player asks for less motion. --god is the god's own colour
   (js/shadow-theme.js PALETTES), --rar a horn's or a carcass's rarity.
   =========================================================================== */

.hc-slab {
  --hc-ink: #fbf3e7;
  --hc-muted: #d8cbe6;
  --hc-base: #140d1e;
  --hc-surface: #241a3d;
  --hc-line: rgb(199 125 255 / 30%);
  --hc-edge-l: max(12px, env(safe-area-inset-left));
  --hc-edge-r: max(12px, env(safe-area-inset-right));
  box-sizing: border-box;
  width: min(980px, calc(100vw - var(--hc-edge-l) - var(--hc-edge-r)));
  max-width: none;
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0 0 16px;
  border: 1.5px solid rgb(199 125 255 / 55%);
  border-radius: 20px;
  color: var(--hc-ink);
  background: linear-gradient(180deg, #1b1228, var(--hc-base));
  font-family: "Trebuchet MS", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 30px 80px rgb(0 0 0 / 70%), 0 0 40px rgb(199 125 255 / 14%);
}
.hc-slab::backdrop { background: rgb(8 4 14 / 74%); backdrop-filter: blur(3px); }
.hc-slab[open] { animation: hc-in .32s ease-out; }
@keyframes hc-in { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.hc-slab > *:not(.hc-hero):not(.hc-raise) { margin-left: 16px; margin-right: 16px; }

.hc-hero { position: relative; aspect-ratio: 16 / 7; overflow: hidden; border-radius: 18px 18px 0 0; }
.hc-hero__art { width: 100%; height: 100%; object-fit: cover; display: block; }
.hc-hero__words {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 12px;
  background: linear-gradient(180deg, transparent, rgb(12 7 18 / 92%));
}
.hc-title { margin: 0; font-size: 28px; letter-spacing: .04em; text-shadow: 0 2px 8px #000; }
.hc-line { margin: 4px 0 0; font-size: 16px; color: var(--hc-muted); max-width: 46em; }
.hc-story { margin: 6px 0 0; font-size: 16px; font-style: italic; color: var(--hc-muted); max-width: 46em; }   /* world/story.html chapter VIII in two lines */
.hc-head { margin: 18px 0 8px; font-size: 18px; color: #e9d7ff; }
.hc-empty { margin: 8px 0; font-size: 16px; color: var(--hc-muted); }

.hc-gods { display: flex; flex-wrap: wrap; gap: 8px; }
.hc-god {
  min-height: 48px; padding: 8px 14px; border-radius: 24px; font: inherit; font-size: 16px; cursor: pointer;
  color: var(--hc-ink); background: rgb(255 255 255 / 6%); border: 2px solid color-mix(in srgb, var(--god) 45%, transparent);
}
.hc-god.is-on { background: color-mix(in srgb, var(--god) 26%, transparent); border-color: var(--god); box-shadow: 0 0 14px color-mix(in srgb, var(--god) 50%, transparent); }
.hc-god:focus-visible, .hc-carcass:focus-visible, .hc-socket:focus-visible, .hc-hold:focus-visible, .hc-back:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.hc-wheelrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; margin-top: 10px; }
.hc-power {
  display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
  padding: 8px; border-radius: 14px; background: var(--hc-surface); border: 1.5px solid color-mix(in srgb, var(--god) 35%, transparent);
}
.hc-power.is-rare { border-color: var(--god); }
.hc-power__icon { grid-row: span 2; width: 56px; height: 56px; object-fit: contain; }
.hc-power__name { font-weight: 700; font-size: 17px; color: var(--god); }
.hc-power.is-rare .hc-power__name::after { content: " (rare)"; color: var(--hc-muted); font-weight: 400; font-size: 16px; }
.hc-power__text { font-size: 16px; color: var(--hc-muted); }

.hc-rack { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.hc-carcass {
  display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 48px; padding: 8px; cursor: pointer;
  font: inherit; font-size: 16px; color: var(--hc-ink); background: var(--hc-surface); border-radius: 14px;
  border: 2px solid color-mix(in srgb, var(--rar) 40%, transparent);
}
.hc-carcass.is-on { border-color: var(--rar); background: color-mix(in srgb, var(--rar) 18%, var(--hc-surface)); box-shadow: 0 0 12px color-mix(in srgb, var(--rar) 45%, transparent); }
.hc-carcass__art { width: 72px; height: 72px; object-fit: contain; }
.hc-carcass__name { font-size: 16px; text-align: center; }

.hc-sum { margin-top: 14px; padding: 10px 14px; border-radius: 14px; background: rgb(0 0 0 / 28%); border: 1px solid var(--hc-line); }
.hc-sum__line { margin: 2px 0; font-size: 16px; }

/* the hold button: the fill grows over the 650 ms press (js/hornclaw-bench.js HOLD_MS) */
.hc-hold {
  position: relative; overflow: hidden; display: inline-flex; flex-direction: column; justify-content: center; align-items: center;
  min-height: 48px; min-width: 120px; margin-top: 12px; padding: 8px 18px; border-radius: 24px; cursor: pointer;
  font: inherit; font-size: 17px; font-weight: 700; color: #1a0f22; background: #c77dff; border: 0;
  touch-action: manipulation; user-select: none; -webkit-user-select: none;
}
.hc-hold:disabled { cursor: not-allowed; color: #cdbfd9; background: #4a3b5a; }
.hc-hold__fill { position: absolute; inset: 0; width: 0; background: rgb(255 255 255 / 42%); }
.hc-hold.is-holding .hc-hold__fill { width: 100%; transition: width .65s linear; }
.hc-hold__label, .hc-hold__sub { position: relative; }
.hc-hold__sub { font-size: 16px; font-weight: 400; }
.hc-slab > .hc-hold { display: flex; width: calc(100% - 32px); }

.hc-back {
  display: block; min-height: 48px; min-width: 120px; margin: 14px 16px 0 auto; padding: 8px 18px; border-radius: 24px;
  font: inherit; font-size: 16px; cursor: pointer; color: var(--hc-ink); background: rgb(255 255 255 / 8%); border: 1.5px solid var(--hc-line);
}
.hc-toast { margin-top: 10px; padding: 10px 14px; border-radius: 12px; font-size: 16px; background: rgb(0 0 0 / 50%); }

/* THE RAISE: a flash of the god's colour, the Hornclaw stands up off the slab */
.hc-raise { position: relative; display: flex; flex-direction: column; align-items: center; padding: 28px 16px 8px; text-align: center; }
.hc-raise::before {
  content: ""; position: absolute; inset: 0; border-radius: 18px;
  background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--god) 55%, transparent), transparent 62%);
  animation: hc-flash 1.4s ease-out both;
}
.hc-raise__art { position: relative; width: min(320px, 70vw); height: auto; animation: hc-rise 1.1s cubic-bezier(.2, .9, .3, 1.2) both; filter: drop-shadow(0 0 18px color-mix(in srgb, var(--god) 60%, transparent)); }
.hc-raise__words { position: relative; max-width: 30em; font-size: 18px; }
@keyframes hc-flash { 0% { opacity: 0; } 18% { opacity: 1; } 100% { opacity: .35; } }
@keyframes hc-rise { from { opacity: 0; transform: translateY(70px) scaleY(.6); } 60% { opacity: 1; transform: translateY(-8px) scaleY(1.05); } to { transform: none; } }

/* ---- THE CLAWS (inside the war machine page's drawer) ------------------------------------------------------------ */
/* the bench's side column is narrow on a PC (about 380 px): nothing here may widen it */
.hc-claws { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; font-size: 16px; }
.hc-claws > * { min-width: 0; }
.hc-hands { display: grid; grid-template-columns: repeat(auto-fit, minmax(184px, 1fr)); gap: 10px; }   /* a hand is three 48 px sockets and its padding: 176 px */
.hc-hand { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 8px; border-radius: 14px; background: rgb(0 0 0 / 26%); }
.hc-hand__name { grid-column: 1 / -1; font-size: 16px; color: #d8cbe6; }
.hc-socket {
  aspect-ratio: 1; min-width: 48px; min-height: 48px; display: grid; place-items: center; padding: 4px; cursor: pointer; font: inherit; font-size: 16px;
  color: #d8cbe6; background: radial-gradient(circle, #2b2233, #15101b); border-radius: 50%;
  border: 2.5px dashed rgb(216 203 230 / 40%);
}
.hc-socket.is-full { border-style: solid; border-color: var(--rar); box-shadow: inset 0 0 14px color-mix(in srgb, var(--rar) 40%, transparent); }
.hc-socket.is-on { outline: 3px solid var(--god); outline-offset: 2px; }
.hc-socket__art { width: 88%; height: 88%; object-fit: contain; }
.hc-socket__empty { font-size: 16px; }
.hc-clawline { margin: 0; font-size: 16px; }

.hc-pick { display: grid; gap: 8px; }
.hc-pick__now { margin: 0; font-size: 16px; }
.hc-horn {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 12px;
  background: rgb(255 255 255 / 5%); border-left: 4px solid var(--rar);
}
.hc-horn__art { width: 48px; height: 48px; object-fit: contain; }
.hc-horn__name { font-size: 16px; }
.hc-horn__gain { grid-column: 2; font-size: 16px; color: #8dff6b; }
.hc-horn__art { grid-row: span 2; }
.hc-horn .hc-hold { grid-column: 3; grid-row: 1 / span 2; margin-top: 0; min-width: 88px; }

.hc-wheelbox { display: grid; justify-items: center; gap: 6px; text-align: center; }
.hc-wheel { position: relative; width: min(240px, 64vw); aspect-ratio: 1; }
.hc-wheel__disc {
  position: absolute; inset: 0; border-radius: 50%;
  border: 6px solid #3a3029; box-shadow: 0 0 24px color-mix(in srgb, var(--god) 40%, transparent), inset 0 0 18px #000;
  transition: transform 0s;
}
.hc-wheel__disc.is-spinning { transition: transform 2.2s cubic-bezier(.12, .7, .18, 1); }
.hc-wedge { position: absolute; left: 50%; top: 50%; width: 30%; height: 30%; transform: rotate(var(--a)) translateY(-95%) rotate(calc(-1 * var(--a))); translate: -50% -50%; display: grid; place-items: center; }
.hc-wedge__icon { width: 100%; height: 100%; object-fit: contain; opacity: .7; }
.hc-wedge.is-on .hc-wedge__icon { opacity: 1; filter: drop-shadow(0 0 10px var(--god)); }
.hc-wheel__pointer { position: absolute; left: 50%; top: -6px; width: 0; height: 0; translate: -50% 0; border: 12px solid transparent; border-top: 20px solid var(--god); }
.hc-wheel__now { margin: 4px 0 0; max-width: 100%; overflow-wrap: anywhere; font-size: 16px; }
.hc-pick > .hc-hold, .hc-wheelbox > .hc-hold { max-width: 100%; }

@media (prefers-reduced-motion: reduce) {
  .hc-slab[open], .hc-raise::before, .hc-raise__art { animation: none; }
  .hc-wheel__disc.is-spinning, .hc-hold.is-holding .hc-hold__fill { transition: none; }
}
