@import "color-light.css";
@import "layout.css";
@import "augmented.css";
@import "sr-fonts.css";
@import "../releasenotes/releasenotes.css";

#logo {
  box-sizing: border-box;
  width: 100px;
  height: 50px;
  padding-left: 100px;
  background-image: url("../images/SR6Logo1.webp");
  background-size: cover;
}

.shadowrun6.sheet.actor header.sheet-header {
	align-items: normal;
}
.shadowrun6.sheet header.sheet-header img {
  flex: 0 0 120px;
  height: 120px;
  object-fit: cover;
}
.shadowrun6 header.sheet-header > * {
  flex: unset;
}

.shadowrun6 .sheet-header img {
	height: 120px;
}

.shadowrun6 .header-fields h1 {
	width: 80%;
}

.shadowrun6 .npc-settings {
  display:flex;
  margin-left: 4px;
  height: 30px;
}
.shadowrun6 .npc-settings label, 
.shadowrun6 .npc-settings span, 
.shadowrun6 .npc-settings select, 
.shadowrun6 .npc-settings input {
  line-height: 32px;
  vertical-align: middle;
  margin-right: 10px;
}
.shadowrun6 .npc-settings input:enabled {
  background: rgba(0, 0, 0, 0.05);
}
.shadowrun6 .npc-settings span, 
.shadowrun6 .npc-settings select, 
.shadowrun6 .npc-settings input {
  width: 90px;
  margin-right: 20px;
}
.shadowrun6 .npc-settings label {
  font-weight: bold;
  padding-left: 5px;
}

.shadowrun6 .npc-settings span {
  padding-left: 7px;
}

.sheet-header .description {
  width: 100%;
  display: flex;
  align-items: center;
}
.autoexpand {
 box-sizing: content-box;
}
.shadowrun6 .monitors input {
  background: white;
  width: 2.5em;
  padding: 1px;
}
.shadowrun6 input.health-phys {
  border: 1px solid var(--highlight-color);
}
.shadowrun6 input.health-stun {
  border: 1px solid var(--accent-color);
  margin-bottom: 4px;
}
.shadowrun6 input.health-overflow {
  border: 1px solid #440000;
  margin-bottom: 4px;
  background: #b50d0d;
  color: white;
  font-weight: bold;
}

@keyframes pulse {
  0%, 100% {
    background-color: #ffe4e1;
  }
  50% {
    background-color: #e95444;
  }
}
@keyframes pulse-animation {
  0% {
    box-shadow: 0 0 0 0px rgba(0, 0, 0, 0.2);
  }
  100% {
    box-shadow: 0 0 0 20px rgba(0, 0, 0, 0);
  }
}

.shadowrun6 .monitors .overflow-bar {
  /* background-color: #ffe4e1; */
  animation: pulse 4s infinite, pulse-animation 2s infinite;
}
.shadowrun6 .monitors .overflow-bar-health {
  background-color: #e9967a;
}
.shadowrun6 .monitors .overflow-bar-dead .overflow-bar-health {
  background-color: black;
  color: white;
}

.shadowrun6 input.box {
  border: 1px solid var(--highlight-color);
  background: white;
  text-align: center;
}
.shadowrun6 input.box:disabled {
  background: lightgrey;
}

.dice-tooltip .dice-rolls .die{
  position: relative;
  width: 24px;
  line-height: 24px;
  float: left;
  margin-right: 1px;
  background-repeat: no-repeat;
  background-size: 24px 24px;
  font-size: 16px;
  color: #000;
  font-weight: bold;
  text-align: center;
}

.dice-tooltip .dice-rolls .die_1{
  background-image: url(../icons/D6_1.svg);
  opacity: 0.3;
}

.dice-tooltip .dice-rolls .die_2{
  background-image: url(../icons/D6_2.svg);
  opacity: 0.3;
}
.dice-tooltip .dice-rolls .die_3{
  background-image: url(../icons/D6_3.svg);
  opacity: 0.3;
}
.dice-tooltip .dice-rolls .die_4{
  background-image: url(../icons/D6_4.svg);
  opacity: 0.3;
}
.dice-tooltip .dice-rolls .die_5{
  background-image: url(../icons/D6_5.svg);
}
.dice-tooltip .dice-rolls .die_6{
  background-image: url(../icons/D6_6.svg);
}

.dice-tooltip .dice-rolls .die_1_wild{
  background-image: url(../icons/Wild_1.svg);
  opacity: 0.3;
}

.dice-tooltip .dice-rolls .die_2_wild{
  background-image: url(../icons/Wild_2.svg);
  opacity: 0.3;
}

.dice-tooltip .dice-rolls .die_3_wild{
  background-image: url(../icons/Wild_3.svg);
  opacity: 0.3;
}

.dice-tooltip .dice-rolls .die_4_wild{
  background-image: url(../icons/Wild_4.svg);
  opacity: 0.3;
}

.dice-tooltip .dice-rolls .die_5_wild{
  background-image: url(../icons/Wild_5.svg);
}

.dice-tooltip .dice-rolls .die_6_wild{
  background-image: url(../icons/Wild_6.svg);
}

.dice-tooltip .dice-rolls li.exploded::after {
  content: '';
  position: absolute;
  background-position: top left;
  background-image: url(../icons/die_exploded.svg);
  background-size: 12px;
  background-repeat: no-repeat;
  width: 24px;
  height: 24px;
  margin-left: -16px;
}

.dice-rolls .edged {
  filter: brightness(0.5) sepia(1) hue-rotate(-70deg) saturate(5);
}
.dice-rolls .ignored {
  filter: grayscale(1) opacity(0.5);
}

/* .dice-rolls .ignored::after {
  background-position: bottom right;
  background-image: url("../icons/die_ignored.svg");
  background-size: 12px;
}
.dice-rolls .edged::after {
  background-position: top left;
  background-image: url("../images/EdgeToken.webp");
  background-size: 12px;
}
.dice-rolls .ignored.edged::after {
  background-image: url("../images/EdgeToken.webp"), url("../icons/die_ignored.svg");
  background-position: top left, bottom right;
  background-size: 12px 12px;
}
.dice-rolls .exploded.ignored.edged::after {
  background-image: url("../icons/die_exploded.svg"), url("../images/EdgeToken.webp"), url("../icons/die_ignored.svg");
  background-position: top right, top left, bottom right;
  background-size: 12px 12px;
}

.dice-rolls .exploded::after,
.dice-rolls .ignored::after,
.dice-rolls .edged::after {
  content: "";
  position: absolute;
  background-repeat: no-repeat;
  width: 24px;
  height: 24px;
  margin-left: -12px;
} */

.edge-roll {
      width: 48px;
      height: 48px;
      text-align: center;
      display: flex;
      flex-flow: column nowrap;
      justify-items: flex-start;
      position: relative;
}
.edge-roll .edge-value {
		z-index: 1;
		position:relative;
		width:48;
		top: 12px;
		text-align: center;
		font-size: large;
		color: white;
		font-weight:bold;
}
.edge {
      width: 96px;
      height: 96px;
      text-align: center;
      display: flex;
      flex-flow: column nowrap;
      justify-items: flex-start;
      position: relative;
}
.edge input.edge-value {
    z-index: -1;
		position: relative;
		text-align: center;
		font-size: xx-large;
		color: white;
		font-weight: bold;
}
.edge.overwatch input.edge-value {
    pointer-events: none;
}
.edge input.edge-value:focus {
	box-shadow: none;
  outline: none;
}
.edge label.edge-max-label {
  z-index: 2;
  position: absolute;
  bottom: 20px;
  padding: 0 2px;
  left: 0;
  text-align: center;
  font-size: .75rem;
  font-weight: bold;
  background-color: rgba(239,239,239,0.8);
  border-radius: 2px;
}
.edge input.edge-max {
  z-index: 2;
  font-size: .8rem;
  position: absolute;
  bottom: 0;
  left: 2px;
  width: 30px;
  height: 20px;
  background-color: var(--section-background);
}

.edge {
  display: inline-block;
  perspective: 600px;
}
.edge .edge-coin {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform-origin: center right;
}
.edge .edge-coin.clickable,
.overwatch.clickable {
  cursor: pointer;
}

.edge-coin__face {
  position: absolute;
  width: 100%;
  height: 100%;
  color: white;
  text-align: center;
  font-weight: bold;
  backface-visibility: hidden;
  -webkit-user-select: none;
  user-select: none;
}

.edge-coin__face_front {
  color: crimson;
}

.edge-coin__face_back {
  color: slateblue;
  transform: rotateY(180deg);
}

.edge-coin.is-flipped {
  transform: translateX(-100%) rotateY(-180deg);
}

.overwatch {
  display: inline-block;
  position: relative;
  filter: drop-shadow(0 0 4px #000000);
}
.overwatch img {
  border: 0px;
  height: auto;
  width: 80px;
  z-index: 0;
  position:absolute;
  transition: all 0.4s ease;
}
/* Glow effect keyframes */
@keyframes redGlow {
  0%  { filter: drop-shadow(0 0 0px red) saturate(100%) brightness(1); }
  50% { filter: drop-shadow(0 0 10px red) saturate(250%) brightness(1.3); }
  100% { filter: drop-shadow(0 0 0px red) saturate(100%) brightness(1); }
}
@keyframes blueGlow {
  0%   { filter: blur(0px) brightness(1) drop-shadow(0 0 0px #00aaff); transform: scale(1); }
  50%  { filter: blur(3px) brightness(1.3) drop-shadow(0 0 6px #00aaff); transform: scale(0.9); }
  100% { filter: blur(0px) brightness(1) drop-shadow(0 0 0px #00aaff); transform: scale(1); }
}
/* Glow effect when clicked */
.overwatch img.redGlow {
  animation: redGlow 0.5s ease;
}
.overwatch img.blueGlow {
  animation: blueGlow 0.5s ease;
}

.app.window-app.shadowrun6.actor .attributes {
    height: 5.25rem;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: stretch;
    margin-top: 1rem;
}
.app.window-app.shadowrun6.actor .attributes .attribute {
  min-width: 5.25rem;
  text-align: center;
  padding: .25rem;
  display: flex;
  flex-flow: column nowrap;
  justify-items: flex-start;
  --aug-border: 1px;
  --aug-inset: 2px;
  --aug-border-bg: rgb(82, 81, 78);
  --aug-inset-bg: rgba(255, 255, 255, 0);
  --aug-b-width: 33%;
  --aug-b-height: 10px;
  position: relative;
  background-color: var(--section-background);
}
.app.window-app.shadowrun6.actor .attributes .attribute p {
  text-align: center;
  margin: 0; 
  font-weight: bold;
}
.app.window-app.shadowrun6.actor .attributes .attribute span {
  font-size: 1.125rem;
  margin-top: .4rem;
  color: var(--highlight-color);
}
.app.window-app.shadowrun6.actor .attributes .attribute .field {
  display: flex;
  flex-flow: column nowrap; }
.app.window-app.shadowrun6.actor .attributes .attribute input::placeholder,
.app.window-app.shadowrun6.actor .attributes .attribute label {
  font-size: .6rem;
  opacity: 0.4;
}
.app.window-app.shadowrun6.actor .attributes .attribute .field:nth-of-type(1) {
  font-size: .89rem;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 2em;
}
.app.window-app.shadowrun6.actor .attributes .attribute .field:nth-of-type(2) {
  font-size: .89rem;
  position: absolute;
  bottom: 0;
  right: 0;
  width: 2em;
}

.app.window-app.shadowrun6.actor .attributes.vertical {
  flex-flow: column;
  margin-top: 0;
  height: unset;
}
.app.window-app.shadowrun6.actor .attributes.vertical .attribute {
  height: 5.25rem;
}
.app.window-app.shadowrun6.actor .attributes .attribute input.span {
  width: 2em;
  text-align: center;
  border: 0;
  background: none;
  font-size: 1.125rem;
  margin: 0 auto;
  margin-top: .4rem;
  color: var(--highlight-color);
}
.app.window-app.shadowrun6.actor .attributes.vertical .attribute.special {
  height: unset;
  border: 1px black solid;
  margin-top: 0.5rem;
  text-align: center;
  border-radius: 0 0 18px 18px;
}

.chat-message .soak-result .damageApplied {
  color: gray;
  box-shadow: 0 0 0.05em, 0 0.06em 0.2em 0.01em inset, 0 0 0 0.07em transparent inset;
  filter: invert(15%) brightness(1.09);
}
.chat-message .soak-result .damageApplied > i, .chat-message .soak-result .revertDamageCheck > i {
  margin-right: 0px;
}
.chat-message .soak-result .revertDamageCheck {
  color: white;
  background: darkred;
}
.chat-message .soak-result .damageApplied .damage-apply-text {
  display: inline; 
}
.chat-message .soak-result .damageApplied .damage-revert-text {
  display: none; 
}
.chat-message .soak-result .revertDamageCheck .damage-apply-text {
  display: none; 
}
.chat-message .soak-result .revertDamageCheck .damage-revert-text {
  display: inline; 
}

#chat-controls .chat-control-icon:hover {
  text-shadow: 0 0 8px var(--color-shadow-primary);
}
.foundry-modern #chat h3 {
  font-size: 1.25em;
  margin: 0 0 0.5rem;
  border-bottom: 1px solid var(--color-underline-header);
}

#token-hud .status-effects {
  width: 222px;
  grid-template-columns: repeat(5, 20%);
}
#token-hud .status-effects .effect-control {
  width: 42px;
  height: 42px;
  padding: 2px;
  opacity: 0.4;
}
#token-hud .status-effects .effect-control:hover {
  opacity: 1;
  -webkit-filter: drop-shadow( 0px 0px 3px rgba(197, 143, 178, 0.7));
  filter: drop-shadow( 0px 0px 3px rgba(197, 143, 178, 0.7));
}
#token-hud .status-effects .effect-control.active {
  border: 1px solid white;
}
#token-hud .status-effects .effect-control-wrapper {
  display: grid;
  position: relative;
}

#token-hud .status-effects .effect-control-wrapper .badge {
  font-family: 'Signika';
  font-size: var(--font-size-15);
  font-style: unset;
  font-weight: bolder;
  line-height: var(--font-size-15);
  background: white;
  border-radius: 50%;
  border: 0.5px solid var(--color-shadow-primary);
  height: 1rem;
  pointer-events: none;
  position: absolute;
  right: -3px;
  text-align: center;
  top: -3px;
  width: 1rem;
  z-index: 1;
  color: black;
}

#pause.paused {
  height: 220px;
  animation: none;
  gap: unset;
}
#pause img {
  position: absolute;
  height: 140px;
  width: 140px;
  top: 10px;
}
.foundry-modern #pause img {
  top: 40px;
}
#pause figcaption {
  font-family: "Rubik Glitch";
  color: #eee;
  font-size: 3em;
  font-weight: 400;
  letter-spacing: 0.05em;
  top: 60px;
}
.foundry-modern #pause figcaption {
  top: 30px;
}
.glitch {
  font-size: 8rem;
  font-weight: 700;
  text-transform: uppercase;
  position: relative;

  text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
    -0.025em -0.05em 0 rgba(0, 255, 0, 0.75),
    0.025em 0.05em 0 rgba(0, 0, 255, 0.75);

  animation: glitch 2000ms infinite;
}

.glitch span {
  position: absolute;
  top: 0;
  left: 0;
}

.glitch span:first-child {
  animation: glitch 650ms infinite;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
  transform: translate(-0.025em, -0.0125em);
  /* color: green; */
  opacity: 0.8;
}

.glitch span:last-child {
  animation: glitch 375ms infinite;
  clip-path: polygon(0 80%, 100% 20%, 100% 100%, 0 100%);
  transform: translate(0.0125em, 0.025em);
  /* color: red; */
  opacity: 0.8;
}

/* https://web.dev/prefers-reduced-motion/#(bonus)-forcing-reduced-motion-on-all-websites */

@keyframes glitch {
  0% {
    text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
      -0.05em -0.025em 0 rgba(0, 255, 0, 0.75),
      -0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
  }
  4% {
    text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
      -0.05em -0.025em 0 rgba(0, 255, 0, 0.75),
      -0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
  }
  5% {
    text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
      0.025em 0.025em 0 rgba(0, 255, 0, 0.75),
      -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
  }
  18% {
    text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
      0.025em 0.025em 0 rgba(0, 255, 0, 0.75),
      -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
  }
  19% {
    text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75),
      0.05em 0 0 rgba(0, 255, 0, 0.75), 0 -0.05em 0 rgba(0, 0, 255, 0.75);
  }
  38% {
    text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75),
      0.05em 0 0 rgba(0, 255, 0, 0.75), 0 -0.05em 0 rgba(0, 0, 255, 0.75);
  }
  30% {
    text-shadow: -0.025em 0 0 rgba(255, 0, 0, 0.75),
      -0.025em -0.025em 0 rgba(0, 255, 0, 0.75),
      -0.025em -0.05em 0 rgba(0, 0, 255, 0.75);
  }
  100% {
    text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
      -0.05em -0.025em 0 rgba(0, 255, 0, 0.75),
      -0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
}


.package-configuration .category[data-category="system"] label {
  flex: 20;
  font-weight: bold;
}
.package-configuration .category[data-category="system"] input {
  text-align: center;
}

.matrix-section .skill-pool {
  flex-grow: 0.9;
  text-align: right;
  min-width: 70px;
}
.matrix-section .illegal-true {
  color: darkred;
}
.matrix-section .illegal-false {
  color: darkgreen;
}
.item-control.disabled-roll {
  color: grey;
}
a.item-control.disabled-roll:hover {
  text-shadow: unset;
  cursor: unset;
}

.matrix-access-switch input[type="radio"],
.matrix-access-switch input[type="checkbox"] {
  display:none;
  cursor: pointer;
}
.matrix-access-switch {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 5px;
  background: rgb(0 66 17);
  border: 2px solid #1e1e1e;
  border-radius: 12px;
}
.matrix-access-switch label{
  padding: 0.2rem 0.5rem;
  z-index: 1;
  cursor: pointer;
  text-align: center;
  color: white;
  text-transform: uppercase;
  font-family: 'Play';
}
.matrix-access-switch #active-label {
  position: absolute;
  left: 0;
  width: 34%;
  height: 100%;
  background: #14142a;
  border: 1px solid rgb(0 200 50);
  border-radius: 12px;
  opacity: .5;
  transition: .5s left ease;
}
#matrix-access-switch-radio1:checked ~ #active-label{
  left: 0;
}
#matrix-access-switch-radio2:checked ~ #active-label{
  left: 33%;
}
#matrix-access-switch-radio3:checked ~ #active-label {
  left: 66%;
}

.matrix-persona-header {
  display: flex;
  justify-content: space-evenly;
  gap: 10px;
  color: var(--highlight-color);
  background-color: var(--tablehead-background);
  font-weight: 700;
  align-items: center;
  padding: 2px 0;
}
.matrix-persona-attributes {
  display: flex;
  justify-content: space-evenly;
  gap: 10px;
  font-weight: 700;
  margin-top: 6px;
  align-items: center;
}

.matrix-persona-attributes input[disabled] {pointer-events:none}
.matrix-persona-attributes .matrix-attribute {
  cursor: pointer;
  transition: .5s left ease;
}
.matrix-persona-attributes div, .matrix-persona-header div {
  text-align: center; 
}
.matrix-persona-attributes .matrix-attribute input:disabled {
  width: 2em;
  background: white;
}
.matrix-persona-attributes .matrix-attribute input.clicked:disabled {
  background: rgb(0 200 50);
  color: white;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.39), 0 -1px 1px #FFF, 0 1px 0 #FFF;
}
.matrix-persona-attributes .matrix-attribute-mod input {
  width: 2em;
}
#section-matrixbase .collapsible-content { padding: 0; }

.matrix-persona-attributes .collapsible {
  color: gray;
}


.chat-message .edgeable.edge-own-roll .die.miss,
.chat-message .edgeable.edge-opponent-roll .die.hit {
  cursor: pointer;
}
.chat-message .chat-edge-post-collapsible .spend_edge {
  /* hidden by default */
  display: none;
}
.chat-message .edgeable.edge-opponent-roll .opponent-edge-options {
  /* hidden by default */
  display: block;
}
.chat-message .edgeable.edge-own-roll .own-edge-options {
  /* hidden by default */
  display: block;
}
.chat-message .edgeable.edge-opponent-roll .opponent-edge-options {
  /* hidden by default */
  display: block;
}
.chat-message .dice .selectedDie {
  filter: hue-rotate(210deg);
  opacity: 1;
}
.chat-message .dice .wild.selectedDie {
  filter: hue-rotate(315deg) brightness(0.6);
  opacity: 1;
}
.chat-message .edgeBoostSelect {
  width: 100%;
  margin-top: 0.5em;
  text-align: center;
}
.chat-message .edgePerform {
  margin: 0.5em 0;
}
.chat-message .message-header .flavor-text {
  color: var(--highlight-color);
  font-size: var(--font-size-14);
  font-weight: 600;
}
.edgeToken {
  background-image: url(../images/EdgeToken.webp);
  background-size: 1.5em 1.5em;
  width: 1.5em;
  height: 1.5em;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.3em;
  margin-bottom: 2px;
}

.chat-message .message-content h4 {
  color: var(--highlight-color);
  font-style: italic;
  font-weight: 700;
}
.chat-message .message-content .resulttext {
  margin-top: 5px;
}
.chat-message .message-content .success {
  color: darkgreen;
  font-weight: 700;
}
.chat-message .message-content .failure {
  color: firebrick;
  font-weight: 700;
}
.chat-message .chat-legwork .payformore {
  font-style: italic;
  font-weight: 700;
  margin-bottom: 6px;
}
.chat-message .chat-legwork .unwilling span {
  color: transparent;
  text-shadow: 0 0 3px rgba(0,0,0,0.5);
}
.chat-message .chat-legwork span.willing {
  color: revert;
  text-shadow: revert;
}
.game .combat-sidebar li.combatant .roll {
  background: url(../images/dice-pool-white.webp) no-repeat 50% 50%;
  background-size: 32px;
}
.chat-message .tooltip-part .dice span,
.chat-message .tooltip-part .threshold span {
  font-weight: 700;
}

.chat-message .tooltip-part .threshold {
  margin: 5px 0;
}

/* Physical Monitor */
#token-hud .attribute.physical input,
#token-hud .attribute.health-physicalCM input {
  border: 2px solid rgb(137, 35, 120);
}
/* Stun Monitor */
#token-hud .attribute.stun input,
#token-hud .attribute.health-stunCM input {
  border: 2px solid rgb(0, 168, 255);
}
/* Matrix Monitor */
#token-hud .attribute.matrix-matrixCM input {
  border: 2px solid rgb(0, 200, 50);
}

.dialog-content .interval select {
  height: var(--form-field-height);
}
.chat-message .continue-extended-test .success {
  padding-bottom: 5px;
}

.sheet.item img {
  max-height: 92px;
  width: auto;
}
#scene-navigation .scene-navigation-menu .scene {
  font-weight: 600;
}

/* ApplicationV2 */
.application .window-header .window-title {
  line-height: 1em;
}
.application.shadowrun6 {
  box-shadow: 0 0 10px var(--color-shadow-primary);
  --sr6-color-text-primary: black;
  --sr6-color-text-secondary: grey;
  --sr6-color-text-emphatic: black;
  color: var(--sr6-color-text-primary);
  
  --accent: #b00078;
  --text: #111;
  --font: Arial, Helvetica, sans-serif;
}

.application.shadowrun6 .window-resize-handle {
  filter: drop-shadow(0 0 1px rgb(247 247 247 / 1)) 
          drop-shadow(0 0 3px rgb(247 247 247 / 0.95))
          drop-shadow(0 0 6px rgb(247 247 247 / 0.75));
}
.application.shadowrun6 .header-control.toggleEditActor i {
  margin-top: 2px;
}

.application.shadowrun6.actor header.sheet-header {
  position: relative;
  min-width: unset;
  display: flex;
  flex-direction: row;
}
.application.shadowrun6 .profile-img[data-edit="img"] {
  cursor: pointer;
}
.application.shadowrun6 .prototype-actor {
  position: absolute;
  color: grey;
  font-weight: bold;
  top: 8px;
  right: 110px;
  font-family: 'Signika';
  font-size: 22px;
  opacity: 0.15;
  z-index: -1;
}
.application.shadowrun6 .header-fields {
  margin-left: 8px;
  width: 100%;
}
.application.shadowrun6 .header-fields .document-name {
  padding-right: 95px;
}
.application.shadowrun6 .header-fields h1 {
  padding-bottom: 0;
  width: 100%;
}
.application.shadowrun6 .npc-settings {
  margin: 6px 2px;
}
.shadowrun6 .npc-settings label {
  padding: 0;
}
.application.shadowrun6 .npc-settings select[name="system.rating"],
.application.shadowrun6 .npc-settings span[data-field="system.rating"] {
  width: 60px;
}
.application.shadowrun6 .npc-settings select[name="system.type"],
.application.shadowrun6 .npc-settings span[data-field="system.type"] {
  width: 120px;
}

.application.shadowrun6::after {
	display: block;
	content: "";
	position: fixed;
	width: 200px;
	height: 36px;
	margin-top: -10px;
	margin-left: 200px;
	background: url(../images/SR6Logo2.webp);
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center top;
	pointer-events: none;
  z-index: 1;

	opacity: 0;
	transform: translateY(6px) scale(0.96);
	filter:
		blur(6px)
		brightness(1.8)
		drop-shadow(0px 0px 8px var(--color-shadow-primary));
}
.application.shadowrun6:not(.minimized)::after {
	animation: sr6-hologram-in 650ms ease-out forwards;
}
.application.shadowrun6.minimized::after {
	animation: none;
	opacity: 0;
	transform: translateY(6px) scale(0.96);
	filter: blur(6px) brightness(1.8) drop-shadow(0px 0px 8px var(--color-shadow-primary));
}
@keyframes sr6-hologram-in {
	0%   { opacity: 0;    transform: translateY(10px) scale(.9);                  filter: blur(10px)  brightness(2.3)  drop-shadow(0 0 12px var(--color-shadow-primary)); }
	12%  { opacity: .25;  transform: translateY(7px) scale(.94);                  filter: blur(6px)   brightness(2.1)  drop-shadow(0 0 10px var(--color-shadow-primary)); }
	24%  { opacity: .7;   transform: translateY(3px) scale(.985);                 filter: blur(2px)   brightness(1.7)  drop-shadow(0 0 8px var(--color-shadow-primary)); }
	32%  { opacity: .45;  transform: translate(-1px, 2px) scale(.975);            filter: blur(3px)   brightness(1.9)  drop-shadow(0 0 9px var(--color-shadow-primary)); }
	40%  { opacity: .85;  transform: translate(1px, 1px) scale(1.01);             filter: blur(1px)   brightness(1.5)  drop-shadow(0 0 7px var(--color-shadow-primary)); }
	52%  { opacity: .65;  transform: translate(-.5px, 0) scale(.995);             filter: blur(1.5px) brightness(1.35) drop-shadow(0 0 6px var(--color-shadow-primary)); }
	70%  { opacity: .95;  transform: translateY(0) scale(1.003);                  filter: blur(.4px)  brightness(1.15) drop-shadow(0 0 5px var(--color-shadow-primary)); }
	100% { opacity: 1;    transform: translateY(0) scale(1);                      filter: blur(0)     brightness(1)    drop-shadow(0 0 4px var(--color-shadow-primary)); }
}

.application.shadowrun6 nav.tabs [data-tab] {
  color: var(--sr6-color-text-secondary);
}
.application.shadowrun6 nav.tabs [data-tab]:hover {
  color: var(--sr6-color-text-emphatic);
}
.application.shadowrun6 nav.tabs [data-tab].active {
  color: var(--sr6-color-text-emphatic);
}
.application.shadowrun6 .sheet-tabs {
  margin: 8px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.application.shadowrun6 .sheet-tabs.tabs > a:first-child {
  padding-left: 2px;
}
.application.shadowrun6 .sheet-tabs.tabs > a:last-child {
  padding-right: 2px;
}
.application.shadowrun6 nav.tabs [data-tab]:not(.active) {
  text-shadow: 0 0 .1px, 0 0 .1px, 0 0 8px white;
}

/* Tabs Scrolling Behavior */
.application.shadowrun6 .sheet-tabs.tabs {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: none;
  min-height: 2.35rem;
}
.application.shadowrun6 .sheet-tabs.tabs::-webkit-scrollbar {
  display: none;
}
.application.shadowrun6 .sheet-tabs.tabs > a {
  flex: 0 0 auto;
}
.application.shadowrun6 .sheet-tabs.tabs.can-scroll-left::before,
.application.shadowrun6 .sheet-tabs.tabs.can-scroll-right::after {
  position: sticky;
  top: 0;
  width: 24px;
  height: 100%;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 3;
  font-size: 14px;
  font-weight: bold;
  color: black;
  padding: 0 2px;
}
.application.shadowrun6 .sheet-tabs.tabs.can-scroll-left::before {
  content: "«";
  left: 0px;
  background-color: #F7F7F7;
  box-shadow: 6px 0 6px rgba(247, 247, 247, 1);
}
.application.shadowrun6 .sheet-tabs.tabs.can-scroll-right::after {
  content: "»";
  right: 0px;
  background-color: #828182;
  box-shadow: -6px 0 6px rgba(130, 129, 130, 1);
}
/* END Tabs Scrolling Behavior */

body.game .application.shadowrun6 .window-content {
  scrollbar-gutter: auto;
}
.application.shadowrun6 .section.wide {
  margin: 5px 0;
}

.sr6-icon-roll {
  color: #ff68c3;
  transition: color 0.2s ease;
}
.sr6-icon-roll:hover {
  color: revert;
}
.sr6-icon-edge {
  position: relative;
}
.sr6-icon-edge::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url(../images/EdgeToken.webp);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
  filter: grayscale(0.7) brightness(3);
  transition: filter 0.2s ease;
}
.sr6-icon-edge:hover::before {
  filter: grayscale(0);
}

.application.shadowrun6 .window-content h1 {
  font-family: var(--font);
  font-size: 1.9rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent);
  border: none;
}
.application.shadowrun6 .window-content h1 input {
  text-decoration: dotted;
  text-decoration-line: underline;
  font-size: 1.9rem;
  line-height: 1.9rem;
  height: 1.9rem;
  color: unset;
  padding: 0;
}

/* SR6 Stat Block */
.stat-block {
  --bg: #ebebeb;
  --label-bg: #ddddd9;

  display: inline-block;
  max-width: 100%;
  background: var(--bg);
  padding: 10px 10px 12px;
  box-sizing: border-box;
  color: var(--text);
}

.stat-block .title {
  margin: 0 0 6px;
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  font-family: var(--font);
  color: var(--accent);
  border: none;
}

.stat-block .meta {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.stat-block .meta strong {
  font-weight: 800;
}

.stat-block .stat-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px 0;
  
  /* Add 10px above if there's content above */
  /* margin: 10px 0; */
  margin-bottom: 10px;

  font-family: var(--font);
  font-size: 0.85rem;
}

.stat-block .stat {
  flex: 1 1 auto;
  min-width: 42px;
  text-align: center;
  white-space: nowrap;
}

.stat-block .stat.wide {
  min-width: 50px;
}

.stat-block .stat.move {
  min-width: 65px;
}

.stat-block .stat-label {
  background: var(--label-bg);
  color: var(--accent);
  font-weight: 800;
  padding: 1px 4px;
  text-transform: uppercase;
}

.stat-block .stat-value {
  padding-top: 2px;
  line-height: 1.2;
  white-space: nowrap;
}

.stat-block .content {
  font-size: 0.92rem;
  line-height: 1.24;
}

.stat-block .row {
  margin-bottom: 4px;
}

.stat-block .label {
  font-weight: 800;
}

.stat-block .row p {
  display: inline;
  margin: 0;
}

.stat-block .row-weapons .label {
  display: block;
  font-weight: 800;
  margin-bottom: 4px;
}

.stat-block .weapon-list {
  padding-left: 18px;
}

.stat-block .weapon-list>div {
  padding-left: 22px;
  text-indent: -22px;
  line-height: 1.24;
  margin-bottom: 2px;
}