:root {
  --main-background-1: #f86e01;
  --main-background-2: #fc010c;
  --main-background-3: #105cff;
  --main-background-4: #00eb2e;
  --main-background-5: #fb38b0;
  --main-background-6: #5f1fbf;
  --text-primary: rgba(255, 255, 255, 1.0);
  --text-secondary: rgba(255, 255, 255, 0.8);
  --text-tertiary: rgba(255, 255, 255, 0.6);
  --gradient-rotation: 0deg;
  --gradient-translate-x: -70%;
  --gradient-translate-y: -70%;
}

body {
  margin-top: 0px;
  color: var(--text-primary);
  display: flex; 
  flex-direction: column;
  min-height: 100vh;
  font-family: -apple-system, 'SF Pro', BlinkMacSystemFont, 'Inter', system-ui, 'Segoe UI', 'Helvetica Neue', 'Noto Sans', 'Ubuntu', Arial, sans-serif, ui-sans-serif;
  font-size: 16px;
  font-weight: 600;
  justify-content: flex-start;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  padding-top: env(safe-area-inset-top);
  box-sizing: border-box;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 800%;
  height: 800%;
  z-index: -1;
  transform: translate(var(--gradient-translate-x), var(--gradient-translate-y));
  background: conic-gradient(
    from var(--gradient-rotation) at center,
    var(--main-background-1),
    var(--main-background-2),
    var(--main-background-3),
    var(--main-background-4),
    var(--main-background-5),
    var(--main-background-6),
    var(--main-background-1)
  );
}

body.js-gradient::before {
  background: conic-gradient(
    from var(--gradient-rotation) at center,
    var(--main-background-1),
    var(--main-background-2),
    var(--main-background-3),
    var(--main-background-4),
    var(--main-background-5),
    var(--main-background-6),
    var(--main-background-1)
  );
}

html.fallback-gradient body::before {
  background: linear-gradient(
    calc(45deg + var(--gradient-rotation)),
    var(--main-background-1),
    var(--main-background-2),
    var(--main-background-3),
    var(--main-background-4),
    var(--main-background-5),
    var(--main-background-6),
    var(--main-background-1)
  );
  background-size: 400% 400%;
}

h1 {
    margin: 30px 0 0 0;
	font-size: 29px;
	font-weight: 700;
    transition:
      margin 0.3s ease,
      font-size 0.3s ease,
      font-weight 0.3s ease;
}

header.compressed h1 {
    margin: 8px 0 8px 0;
    font-size: 22px;
    font-weight: 600;
}

header.compressed h3,
header.compressed h5 {
  opacity: 0;
  max-height: 0;
  margin: 0;
}

h3, h5 {
  transition: opacity 0.3s ease, max-height 0.3s ease, margin 0.3s ease;
}

@media (min-width: 321px) {
    h1 {
        font-size: 34px;
        margin: 45px 0 0 0;
    }
}

h3 {
    margin: 8px 0 0 0;
	font-size: 16px;
	color: var(--text-secondary);
	font-weight: 600;
}

h5 {
    margin: 8px 0 16px 0;
	font-size: 12px;
	color: var(--text-tertiary);
}

sub {
    padding: 16px 0 16px 0;
}

.center {
  margin-top: auto;
  margin-bottom: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

html {
  height: 100%;
}

.credits-card {
 width: 85%;
 background: rgba(255, 255, 255, 0.05);
 border: 1px solid rgba(255, 255, 255, 0.1);
 border-radius: 12px;
 padding: 12px 16px 0px 16px;
 margin: 0 auto 16px auto;
 backdrop-filter: blur(20px);
 box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
 max-width: 500px;
}

.credits-card:hover {
  cursor: pointer;
}

.credits-card h2 {
 margin: 0 0 16px 0;
 font-size: 20px;
 font-weight: 600;
 text-align: left;
 text-decoration: none;
 color: var(--text-primary)
}

.credits-list {
 list-style: none;
 padding: 0;
 margin: 0;
 display: flex;
 flex-direction: column;
 gap: 10px;
}

.credits-list li {
 color: var(--text-secondary);
 font-size: 14px;
 font-weight: 500;
 line-height: 1.4;
 padding: 8px 0;
 border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.credits-list li:last-child {
 border-bottom: none;
}

.credits-list li.note {
 color: var(--text-tertiary);
 font-style: italic;
 font-size: 13px;
 text-align: center;
 margin-bottom: 8px;
}

.credits-list .role {
 color: var(--text-tertiary);
 font-weight: 400;
 font-size: 13px;
}

.credits-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.credits-list.expanded {
  max-height: 100vh;
}

#jbButton {
  font-family: -apple-system, 'SF Pro', BlinkMacSystemFont, 'Inter', system-ui, 'Segoe UI', 'Helvetica Neue', 'Noto Sans', 'Ubuntu', Arial, sans-serif, ui-sans-serif;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 0 auto 16px auto;
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  max-width: 500px;
  font-size: 20px;
  color: white;
  text-align: center;
  display: block;
  cursor: pointer;
  transition: transform 0.1s ease, opacity 0.3s ease;
}

#jbButton:active:not(:disabled) {
  transform: scale(0.98);
  opacity: 0.8;
}

#jbButton:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

a {
  display: block;
  width: 85%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 0 auto 16px auto;
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  max-width: 500px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 20px;
  font-weight: 600;
  text-align: left;
  justify-content: flex-start;
}

header, sub {
  display: block;
  width: 100%;
  max-width: 500px;
  margin: 0 auto 0 auto;
  text-align: left;
}

@media (min-width: 500px) {
  header, sub {
    transform: translateX(-16px);
  }
}

.credits-card, a, #jbButton {
  -webkit-user-select: none;
  user-select: none;
}

.credits-card:active, a:active {
  transform: scale(0.98);
  opacity: 0.8;
}

.credits-card, a {
  transition: transform 0.1s ease, opacity 0.25s ease;
}