/* Studio primary actions share a silver cap and recessed navy reading surface. */
@font-face {
  font-family: "GiG Arc";
  src: url("/assets/oxanium.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:is(.gig-arc, .gig-studio-page #gig-content a.button, .shell .hero-copy a.jump, .shell .signup button.get-news, .gig-studio .store-links a, .monk-page .development > a) {
  --arc-accent: var(--accent-idle, #e5b65d);
  --arc-bright: var(--accent-hover, #ffe0a2);
  --bounce: var(--lower-glint, #d6ae6f);
  --glint-x: 22%;
  --lip: 4px;
  --shadow-drop: 6px;
  --shadow-blur: 6px;
  --top-reflection: #e4f2ff94;
  --bottom-reflection: #90a3b345;
  box-sizing: border-box;
  position: var(--arc-position, relative);
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--arc-gap, 0);
  min-height: var(--arc-height, 48px);
  max-width: 100%;
  padding: var(--arc-padding, 11px 23px 11px 27px);
  border: 1.5px solid transparent;
  border-radius: 999px;
  background:
    radial-gradient(ellipse 32% 14% at 72% 105%, var(--bounce), transparent) padding-box,
    linear-gradient(178deg, #566b80, #324558 20%, #212e3c 36%, #121e2b 59%, #192838 78%, #3b4c5c 94%, #1b2b3b) padding-box,
    linear-gradient(155deg, #f8fafc, #acbac5 28%, #556674 53%, #354353 67%, #bcc8d0 95%) border-box;
  box-shadow: inset 0 1.5px 1px var(--top-reflection), inset 1px 0 1px #c7d4de42,
    inset 0 -2px 1px #07101abe, inset 0 -3px 1px var(--bottom-reflection),
    0 var(--lip) 0 -.5px #263343, 0 calc(var(--lip) + 1px) 0 -.5px #070e18,
    0 var(--shadow-drop) var(--shadow-blur) #040a12b3;
  color: #f4f6f8;
  font: 560 var(--arc-type-size, 16px)/1.25 "GiG Arc", "Segoe UI", Arial, sans-serif;
  letter-spacing: .005em;
  text-align: center;
  text-shadow: 0 1px 1px #040a14;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.shell :is(.hero-copy a.jump, .signup button.get-news) {
  --accent-idle: #91cbff;
  --accent-hover: #d2edff;
  --lower-glint: #9acdf9;
}

:is(.gig-arc, .gig-studio-page #gig-content a.button, .shell .hero-copy a.jump, .shell .signup button.get-news, .gig-studio .store-links a, .monk-page .development > a)::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 2px solid transparent;
  border-left-color: var(--arc-accent);
  border-top-color: var(--arc-accent);
  border-radius: inherit;
  clip-path: inset(0 calc(100% - 20px) 0 0);
  pointer-events: none;
}

:is(.gig-arc, .gig-studio-page #gig-content a.button, .shell .hero-copy a.jump, .shell .signup button.get-news, .gig-studio .store-links a, .monk-page .development > a)::after {
  content: "";
  position: absolute;
  display: block;
  pointer-events: none;
  z-index: -1;
  inset: 2px 6px auto;
  height: 24%;
  margin: 0;
  opacity: 1;
  border-radius: 999px 999px 67% 40% / 160% 140% 85% 65%;
  background:
    radial-gradient(ellipse 31% 95% at var(--glint-x) 0%, #f8fcffb0, transparent),
    linear-gradient(103deg, #8baac242, #ddebfa5e 26%, #b6cadb26 59%, #d4e4f267 79%, #87a4bf22);
  mask-image: linear-gradient(90deg, transparent, black 9%, black 90%, transparent);
}

:is(.gig-arc, .gig-studio-page #gig-content a.button, .shell .hero-copy a.jump, .shell .signup button.get-news, .gig-studio .store-links a, .monk-page .development > a) > span[aria-hidden="true"] {
  display: none;
}

:is(.gig-arc, .gig-studio-page #gig-content a.button, .shell .hero-copy a.jump, .shell .signup button.get-news, .gig-studio .store-links a, .monk-page .development > a):hover {
  --glint-x: 34%;
  --arc-accent: var(--arc-bright);
  color: white;
}

:is(.gig-arc, .gig-studio-page #gig-content a.button, .shell .hero-copy a.jump, .shell .signup button.get-news, .gig-studio .store-links a, .monk-page .development > a):active {
  --lip: 1px;
  --shadow-drop: 1px;
  --shadow-blur: 2px;
  --top-reflection: #d9eaff44;
  --bottom-reflection: #91a4b333;
  transform: translateY(3px);
}

:is(.gig-arc, .gig-studio-page #gig-content a.button, .shell .hero-copy a.jump, .shell .signup button.get-news, .gig-studio .store-links a, .monk-page .development > a):active::after {
  opacity: .76;
}

:is(.gig-arc, .gig-studio-page #gig-content a.button, .shell .hero-copy a.jump, .shell .signup button.get-news, .gig-studio .store-links a, .monk-page .development > a):focus-visible {
  outline: 3px solid #b6dbff;
  outline-offset: 5px;
}

@media (forced-colors: active) {
  :is(.gig-arc, .gig-studio-page #gig-content a.button, .shell .hero-copy a.jump, .shell .signup button.get-news, .gig-studio .store-links a, .monk-page .development > a) {
    border: 2px solid ButtonText;
    background: ButtonFace;
    color: ButtonText;
    box-shadow: none;
    text-shadow: none;
  }
  :is(.gig-arc, .gig-studio-page #gig-content a.button, .shell .hero-copy a.jump, .shell .signup button.get-news, .gig-studio .store-links a, .monk-page .development > a):focus-visible {
    outline-color: Highlight;
  }
  :is(.gig-arc, .gig-studio-page #gig-content a.button, .shell .hero-copy a.jump, .shell .signup button.get-news, .gig-studio .store-links a, .monk-page .development > a)::before,
  :is(.gig-arc, .gig-studio-page #gig-content a.button, .shell .hero-copy a.jump, .shell .signup button.get-news, .gig-studio .store-links a, .monk-page .development > a)::after {
    display: none;
  }
}

/* Four-sided fades keep the original artwork visible through the corners. */
.option-a.gig-studio-page :is(.monk-feature figure, .game-art) img,
.gig-studio .page-grid .wide-art,
.gig-studio .page-news .news-art img,
#all-games .game-card img {
  --fade-side: 9%;
  --fade-top: 12%;
  --fade-bottom: 15%;
  mask-image:
    linear-gradient(to right, transparent, black var(--fade-side), black calc(100% - var(--fade-side)), transparent),
    linear-gradient(to bottom, transparent, black var(--fade-top), black calc(100% - var(--fade-bottom)), transparent);
  mask-composite: intersect;
}
.option-a.gig-studio-page .monk-feature figure img {
  --fade-side: 18%;
  --fade-top: 8%;
}
.option-a.gig-studio-page .game-flood .game-art img,
.gig-studio .page-flood .wide-art,
#all-games a[href$="flood-the-prequel.php"] img {
  --fade-side: 4.5%;
  --fade-top: 8%;
  --fade-bottom: 9%;
}

/* The small navigation cap keeps the wordmark and the native menu disclosure. */
.gig-banner .gig-menu > .gig-arc {
  --arc-height: 44px;
  --arc-padding: 8px 15px 8px 19px;
  white-space: nowrap;
  --arc-gap: .4em;
}
.gig-menu-state::before { content: "+"; }
.gig-menu[open] .gig-menu-state::before { content: "−"; }
.gig-menu-state { font: inherit; color: var(--arc-accent); }
.monk-page .development > a {
  --accent-idle: #91cbff;
  --accent-hover: #d2edff;
  --lower-glint: #9acdf9;
  align-self: center;
  justify-self: start;
}
#nav-button .gig-arc { --arc-position: fixed; bottom: 20px; right: 20px; z-index: 2; }
#all-games .game-card img { border: 0; box-shadow: none; }
#in-memory-of-kevin-morse { scroll-margin-top: calc(var(--gig-header-height, 80px) + 1rem); }
@media (max-width: 600px) {
  nav[aria-label="GiG website"] .gig-arc,
  .exit-link.gig-arc { --arc-height: 44px; --arc-padding: 8px 14px 8px 19px; --arc-type-size: 14px; }
}
