/* r258 (owner 2026-11-29 Lock 1): Landing skills + 3D-stage actions are the ONE kit's beveled squares (src/ui/tactile
   .ss-skill-slot, Calling/Path bezel tier). Layout only; shape, frame, sheen, ring and recoil come from tactile-kit.css. */
html:root body #callings .cp-skills,
html:root body #callings dd:has(> .ss-skill-slot),
.ps-skill-chips {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  gap: 12px 14px !important;
}
html:root body #callings .ss-skill-slot.cp-skill-slot {
  width: 96px;
  min-height: 0;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}
html:root body #callings .ss-skill-slot.cp-skill-slot .ss-skill-slot__label {
  white-space: normal;
  text-align: center;
  line-height: 1.2;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  max-width: 96px;
  overflow: visible;
  text-overflow: clip;
}
/* 3D stage action bar: a forged bevelled tray, not a pill */
html:root body .p3d-anim-bar {
  gap: 10px !important;
  padding: 8px 10px !important;
  border-radius: 6px !important;
}
.p3d-action-slot { position: relative; }
.p3d-action-slot::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 4px 10px;
  border-radius: 3px;
  background: rgba(14, 11, 8, 0.94);
  border: 1px solid rgba(var(--ss-glow-rgb), 0.55);
  color: #f9edd0;
  font: 600 11px/1.2 "Cinzel", Georgia, serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.p3d-action-slot:hover::after,
.p3d-action-slot:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (max-width: 699px) {
  html:root body #callings .ss-skill-slot.cp-skill-slot { width: 88px; }
  html:root body #callings .ss-skill-slot.cp-skill-slot .ss-skill-slot__label { max-width: 88px; font-size: 10px; letter-spacing: 0.02em; }
}

/* Header Sign In (#1090, owner 11-30 'no flat buttons'): carries the Membership sigil and opens the shared Sign-In modal.
   700-960 px wide (phone landscape, small tablets) the header ran past the screen (PLAY ended at x 888 of 844): the
   brand keeps its crest, Sign In keeps its sigil; their words return above 960 px. */
html:root body header#bar.bar .bar-end a.bar-sign { gap: 7px; }
html:root body header#bar.bar .bar-end a.bar-sign .bar-sign-ico { flex: 0 0 16px; width: 16px; height: 16px; color: #e8c878; }
@media (min-width: 700px) and (max-width: 960px) {
  html:root body header#bar.bar a.bar-brand > span:not(.logo-live) { display: none !important; }
  html:root body header#bar.bar .bar-end a.bar-sign .bar-sign-txt { display: none !important; }
  html:root body header#bar.bar .bar-end a.bar-sign { min-width: 44px !important; min-height: 44px !important; padding: 0 !important; justify-content: center !important; }
  html:root body header#bar.bar .bar-end a.bar-sign .bar-sign-ico { width: 20px; height: 20px; flex-basis: 20px; }
}
/* Short landscape screens: the hero headline starts right under the header, so the see-through top bar read as text over
   text (#1090 critics r1). The bar keeps the solid backing it already gets once the page scrolls. */
@media (max-height: 500px) and (min-width: 700px) {
  html:root body header#bar.bar,
  html:root body:not(.scrolled) header#bar.bar:not(.solid) {
    background: #0c0906 !important;
    border-bottom: 1px solid rgba(218, 180, 108, 0.32) !important;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.6) !important;
  }
}
/* Phone portrait: two Path chips per row (152 px each); a 17 px name ran past its chip ('Shadowknight' under 'Monk'). */
@media (max-width: 699px) {
  html:root body #callings #calling-panel button.cp-pchip { min-width: 0; overflow: hidden; }
  html:root body #callings #calling-panel button.cp-pchip .cp-pname { font-size: 13px !important; letter-spacing: 0 !important; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
/* Short landscape screens (844 x 390): the 460 px 3D stage was taller than the screen under the 68 px header, so the
   character's head and the action slots were never visible together. The stage fits the space under the header. */
@media (max-height: 500px) {
  html:root body .p3d-stage .p3d-viewport { height: max(250px, calc(100svh - 92px)); }
}
/* Short landscape screens: the hero is locked to the 390 px screen while its copy is ~520 px, so the headline started
   under the header (y -65). The hero is tall enough for its copy, which clears the 68 px header. */
@media (max-height: 500px) and (min-width: 700px) {
  html:root body section#hero.hero.hero { height: 620px !important; min-height: 0 !important; }
}
/* Short landscape screens: the stage was one 620 x 298 column, so the character filled a small part of a wide, empty
   frame (#1090 phone critic r2, viewport 7.9). Stage and Path info share the row as on desktop, so the stage frame is
   close to square. */
@media (max-height: 500px) and (min-width: 700px) {
  html:root:root:root:root body #callings#callings #calling-panel .adv-card.adv-card-w2.adv-card-w2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; column-gap: 16px !important; align-items: start !important; }
  html:root:root:root:root body #callings#callings #calling-panel .adv-card.adv-card-w2.adv-card-w2 > .p3d-stage { grid-column: 1 !important; grid-row: 1 !important; min-width: 0 !important; }
  html:root:root:root:root body #callings#callings #calling-panel .adv-card.adv-card-w2.adv-card-w2 > .adv-info-w2 { grid-column: 2 !important; grid-row: 1 !important; min-width: 0 !important; }
}
/* The stage's top bar wrapped to two rows (82 px) in the ~300 px landscape column, so stage + bar (388 px) never fit under
   the 68 px header and the bar was sliced by it (#1090 phone critic r3). Short screens: one row (short hint + SFX, rig note
   hidden), and the viewport takes the rest of the space under the header. */
html:root body .p3d-live-badge .p3d-live-short { display: none; }
@media (max-height: 500px) and (min-width: 700px) {
  html:root body .p3d-stage .p3d-top-bar { flex-wrap: nowrap; }
  html:root body .p3d-stage .p3d-rig-note { display: none; }
  html:root body .p3d-live-badge .p3d-live-long { display: none; }
  html:root body .p3d-live-badge .p3d-live-short { display: inline; white-space: nowrap; }
  html:root body .p3d-stage .p3d-viewport { height: max(230px, calc(100svh - 128px)); }
  /* the three action slots stand in a column on the left edge, clear of the character's feet and the platform */
  html:root body .p3d-stage .p3d-anim-bar { flex-direction: column !important; left: 8px !important; bottom: 8px !important; gap: 8px !important; padding: 7px !important; }
}
/* Corner lock pip (#1090, owner 11-30 on r257v9: 'That's not a lock? Its just a circle'). Two older rules hid the padlock: r240's
   [class*="lock"] { opacity: .62 } dimmed the whole pip, and r213's chip-svg colour turned the glyph gold on a gold disc, so only a
   faint gold circle was left. The pip is now a dark iron disc with a gold rim carrying a bright gold padlock (shackle, body, dark
   keyhole), full opacity, on the outer top-right rim; it never covers the medallion's centre. */
html:root:root:root:root:root body main section#callings#callings .cp-lock-pip {
  opacity: 1 !important;
  top: -7px !important;
  right: -7px !important;
  width: 26px !important;
  height: 26px !important;
  background: radial-gradient(circle at 38% 30%, #3a2a16 0%, #1a1209 62%, #0c0805 100%) !important;
  border: 1.5px solid #f0cf82 !important;
  box-shadow: 0 0 0 1.5px #0c0805, 0 3px 8px rgba(0, 0, 0, 0.9), 0 0 10px rgba(240, 207, 130, 0.35) !important;
}
html:root:root:root:root:root body main section#callings#callings .cp-lock-pip svg {
  width: 17px !important;
  height: 17px !important;
  opacity: 1 !important;
  color: #ffd977 !important;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.85)) !important;
}
html:root:root:root:root:root body main section#callings#callings .cp-lock-pip .cp-lock-shackle { stroke: #ffe39a !important; fill: none !important; opacity: 1 !important; }
html:root:root:root:root:root body main section#callings#callings .cp-lock-pip .cp-lock-body { fill: #f2c25a !important; stroke: #fff0c2 !important; stroke-width: 0.8 !important; opacity: 1 !important; }
html:root:root:root:root:root body main section#callings#callings .cp-lock-pip .cp-lock-hole { fill: #1a1209 !important; opacity: 1 !important; }

/* #1090 r257v10: the phone lock line is a flex row with gap 0 (bundle-r100 :1555), which swallowed the space in
   "Unlocks with Spheres membership"; keep one word space before the link. */
@media (max-width: 699px) {
  html:root:root body #callings .cp97 .cp-text .lock-line > a.membership-inline-link { margin-left: .3em !important; }
}
/* the r240 [class*="lock"]{opacity:.62} dim also caught the Calling "Unlocks with Spheres membership" pill: keep it full strength */
html:root:root:root:root:root body main section#callings#callings p.lock-line { opacity: 1 !important; }

/* owner 11-30 'no flat buttons without an icon': the Peoples "Preview <ancestry>" button gets a forged gold
   preview-eye icon (CSS only; the button itself is built in app.js by the Landing wave-2 lane). */
html:root:root:root body #peoples button.people-try {
  display: inline-flex !important; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(180deg, rgba(92, 68, 38, .55), rgba(40, 28, 14, .75)) !important;
  border-color: rgba(232, 190, 110, .62) !important;
  box-shadow: inset 0 1px 0 rgba(255, 228, 170, .22), inset 0 -2px 0 rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .4);
}
html:root:root:root body #peoples button.people-try::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff0c2 0, #e9b955 45%, #7a5420 100%);
  box-shadow: 0 0 0 1px rgba(40, 26, 10, .8), 0 1px 3px rgba(0, 0, 0, .6);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5C6.5 5 2.6 9.3 1.5 12c1.1 2.7 5 7 10.5 7s9.4-4.3 10.5-7C21.4 9.3 17.5 5 12 5Zm0 11.2A4.2 4.2 0 1 1 12 7.8a4.2 4.2 0 0 1 0 8.4Zm0-6.4a2.2 2.2 0 1 0 0 4.4 2.2 2.2 0 0 0 0-4.4Z'/%3E%3C/svg%3E") center / 20px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5C6.5 5 2.6 9.3 1.5 12c1.1 2.7 5 7 10.5 7s9.4-4.3 10.5-7C21.4 9.3 17.5 5 12 5Zm0 11.2A4.2 4.2 0 1 1 12 7.8a4.2 4.2 0 0 1 0 8.4Zm0-6.4a2.2 2.2 0 1 0 0 4.4 2.2 2.2 0 0 0 0-4.4Z'/%3E%3C/svg%3E") center / 20px no-repeat;
}

/* owner 11-30 icon rule, cont.: hero "See the world" (compass) and phone "View paths" (crossroads signpost) */
@media (min-width: 700px) { html:root:root:root body #hero .btn.btn-ghost { display: inline-flex !important; align-items: center; gap: 9px; } }
html:root:root:root body #hero .btn.btn-ghost::before,
html:root:root:root body #callings .cp-paths .cp-pl::before {
  content: ""; flex: none; display: inline-block; vertical-align: -4px; width: 18px; height: 18px;
  background: linear-gradient(180deg, #fff0c2, #e2ad48 60%, #9a6b26);
  -webkit-mask: var(--ss-ico) center / contain no-repeat; mask: var(--ss-ico) center / contain no-repeat;
}
html:root:root:root body #hero .btn.btn-ghost::before {
  --ss-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 1.8A10.2 10.2 0 1 0 12 22.2 10.2 10.2 0 0 0 12 1.8Zm0 2.2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm4.6 3.4-6.2 3-3 6.2 6.2-3 3-6.2ZM12 10.6a1.4 1.4 0 1 1 0 2.8 1.4 1.4 0 0 1 0-2.8Z'/%3E%3C/svg%3E");
}
html:root:root:root body #callings .cp-paths .cp-pl::before {
  margin-right: 7px;
  --ss-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 1.5h2v3h6.2l2.3 2.5-2.3 2.5H13v1.5h-7.2L3.5 8.5 5.8 6H11V1.5Zm0 10.5h2v10.5h-2V12Zm2 0h4.8l2.2 2.4-2.2 2.4H13V12Z'/%3E%3C/svg%3E");
}

/* phone Calling panel rhythm: the membership pill sat 2 px under the Calling title and View paths hugged the panel's
   8 px bottom edge (glm53 r257v10 notes) */
@media (max-width: 699px) {
  html:root:root:root:root:root body main section#callings#callings #calling-panel p.lock-line { margin: 6px 0 8px !important; }
  html:root:root:root body main section#callings #calling-panel.calling-panel { padding-bottom: 16px !important; }
}

/* #1090 r257v12 phone (glm53 r257v11 minors): (1) the "Unlocks with Spheres membership" pill read thin, gold on mid-brown:
   dark iron pill with a gold rim and brighter text; (2) the padlock pip sat tight on the medallion's selection ring: moved
   further out onto the corner; (3) the four Calling panels ended at different heights (pill + one- or two-line role):
   the role line always keeps two lines and the panel keeps the tallest Calling's height. */
@media (max-width: 699px) {
  html:root:root:root:root:root body main section#callings#callings #calling-panel p.lock-line {
    background: linear-gradient(180deg, #2c1f10, #1a1209) !important;
    border: 1px solid rgba(240, 207, 130, .78) !important;
    color: #ffeec4 !important;
    padding: 4px 14px 4px 12px !important;
    box-shadow: inset 0 1px 0 rgba(255, 228, 170, .18), 0 2px 6px rgba(0, 0, 0, .5) !important;
  }
  html:root:root:root:root:root body main section#callings#callings #calling-panel p.lock-line > a.membership-inline-link {
    color: #ffd977 !important; font-weight: 700 !important; text-decoration: underline !important; text-underline-offset: 3px;
  }
  html:root:root:root:root:root body main section#callings#callings #calling-panel .cp-lock-pip { top: -11px !important; right: -12px !important; }
  html:root:root:root body main section#callings #calling-panel .cp-text > p.role { min-height: 33px !important; }
  html:root:root:root body main section#callings #calling-panel.calling-panel { min-height: 716px !important; }
}
