@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&family=Geist+Pixel&family=Geist:ital,wght@0,100..900;1,100..900&family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&family=Stardos+Stencil:wght@400;700&display=swap');

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.22), transparent 35%),
    radial-gradient(circle at bottom right, rgba(255,255,255,0.12), transparent 40%),
    linear-gradient(135deg, #a7829b 0%, #96758C 55%, #8a677f 100%);
  font-family: 'Geist', sans-serif;
  color: #ffffff;
}

#container,
.container,
.main-container,
.page-container,
.app-container {
  position: relative;
  width: min(95vw, 1400px);
  height: min(90vh, 900px);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.28), rgba(255,255,255,0.06)),
    #E6C5DB;
  border-radius: 15px;
  overflow-y: auto;
  overflow-x: hidden;
  isolation: isolate;
}

#container::before,
.container::before,
.main-container::before,
.page-container::before,
.app-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  min-height: 100%;
  height: max-content; 
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: none;
}

#container::after,
.container::after,
.main-container::after,
.page-container::after,
.app-container::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.75;
}

#content,
.content,
.content-area,
.content-panel,
.inner-content {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100%; 
  padding: 24px;
  box-sizing: border-box;
}

#content::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.55),
    rgba(212,176,200,0.45),
    rgba(86,56,78,0.04)
  );
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
}

#boxes,
.boxes,
.box-grid,
.grid-boxes,
.cards-grid {
  display: grid;
  gap: 16px;
}

#boxes {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

#containers,
.containers,
.container-stack,
.stack,
.wrapper-stack {
  display: flex;
  flex-direction: row;
  gap: 16px;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

#panel,
.panel,
.card,
.box,
.surface,
.tile {
  background: linear-gradient(
    135deg, 
    rgba(255, 255, 255, 0.45) 0%, 
    rgba(255, 255, 255, 0.15) 100%
  );
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-bottom: 3px solid rgba(255, 255, 255, 0.2);
  border-right: 3px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  box-shadow: 
    0 8px 32px 0 rgba(63, 41, 58, 0.12),
    inset 0 3px 0 0 rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

#panel,
.panel {
  margin-top: 25px;
  margin-bottom: 25px;
  padding: 10px;
}

#panel::before,
.panel::before {
  opacity: 0.4;
}

.card,
.box,
.surface,
.tile {
  padding: 18px;
  text-align: center;
}

.section,
.section-block,
.block,
.group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.row,
.h-stack,
.inline,
.flex-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.column,
.v-stack,
.flex-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.title,
.heading,
.label {
  font-family: 'Bricolage Grotesque', sans-serif;
  color: #ffffff;
}

.muted,
.helper,
.subtle {
  color: #ffffff;
}

.code,
.mono {
  font-family: 'JetBrains Mono', monospace;
}

button,
.btn,
.button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: linear-gradient(135deg, rgba(243, 220, 234, 0.8), rgba(216, 170, 199, 0.8));
  color: #2F2430;
  box-shadow: 0 10px 20px rgba(63, 41, 58, 0.12);
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

button:hover,
.btn:hover,
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(63, 41, 58, 0.16);
}

button:active,
.btn:active,
.button:active {
  transform: translateY(0);
}

input,
textarea,
select {
  width: 100%;
  box-sizing: border-box;
  border: 3px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.3);
  color: #2F2430;
  border-radius: 16px;
  padding: 12px 14px;
  outline: none;
  font: inherit;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(195, 143, 178, 0.25);
}

.rounded {
  border-radius: 22px;
}

.rounded-sm {
  border-radius: 12px;
}

.shadowed {
  box-shadow: 0 20px 60px rgba(63, 41, 58, 0.18);
}

.border-soft {
  border: 3px solid rgba(86, 56, 78, 0.18);
}

.pad {
  padding: 20px;
}

.pad-lg {
  padding: 28px;
}

.gap {
  gap: 5px;
}

.hidden {
  display: none;
}

#countdown {
  width: 95%;
  min-height: 100px;
  margin-top: 5px;
  justify-self: center;
  justify-content: center;
  background: none;
  color: #ffffff;
  font-family: 'Geist Pixel', sans-serif;
  font-variation-settings: "ELSH" 70;
  font-size: 5rem;
  text-align: center;
  font-variant-numeric: tabular-nums !important;
  transform-origin: center center;
  transform: scale(1);
  transition: transform 0.5s ease-out;
}

#countdown .num {
  display: inline-block;
  width: 2.2ch;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

#countdown.pulse {
  transform: scale(1.15);
}

.discord-widget-wrap {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  margin: 5px;
  background: rgba(15, 23, 42, 0.85);
  border-radius: 1rem;
  border: 3px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-self: center; 
  justify-content: center;
}

.discord-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.9), rgba(79, 70, 229, 0.9));
  color: #e5e7eb;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 0.9rem;
  flex: 0 0 auto;
}

.discord-title {
  font-weight: 600;
  letter-spacing: 0.04em;
}

.discord-status {
  font-size: 0.8rem;
  opacity: 0.85;
}

.discord-iframe {
  border: none;
  width: 100%;
  flex: 1;
  min-height: 0;
  background-color: transparent;
  border-top: 1px solid rgba(15, 23, 42, 0.7);
}

.left-column {
  flex: 0 0 340px;
  display: flex;
  align-items: flex-start;
  min-width: 0;
}

.right-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px; 
  min-width: 0;
  overflow: hidden;
}

.update-log {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.update-log ul {
  margin: 0;
  padding-left: 20px;
  overflow: hidden;
}

li {
  text-align: left;
}

.time-badge {
  height: 0.6rem;
  display: inline-block;
  margin-left: 5px; 
  margin-right: 5px;
  margin-bottom: 1px;
  padding: 3px 8px 5px 24px; 
  background-color: rgba(0, 0, 0, 0.55); 
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M12 2C6.58 2 2 6.58 2 12s4.58 10 10 10s10-4.58 10-10S17.42 2 12 2m0 18c-4.34 0-8-3.66-8-8s3.66-8 8-8s8 3.66 8 8s-3.66 8-8 8'/%3E%3Cpath fill='%23fff' d='M13 7h-2v6h6v-2h-4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 6px center; 
  background-size: 14px; 
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  border-radius: 5px; 
  border: 3px solid rgba(255, 255, 255, 0.5); 
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  vertical-align: middle;
  font-size: 0.6rem;
}

.fix-badge {
  height: 0.6rem;
  display: inline-block;
  margin-left: 5px; 
  margin-right: 5px;
  margin-bottom: 1px;
  padding: 3px 8px 5px 24px; 
  background-color: rgba(0, 0, 255, 0.55); 
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M7 5a4 4 0 0 1 5.445-3.73a.5.5 0 0 1 .173.819L10.707 4L12 5.293l1.91-1.91a.5.5 0 0 1 .82.172a4 4 0 0 1-4.829 5.292L4.896 13.92a1.986 1.986 0 0 1-2.842-2.774l5.05-5.234A4 4 0 0 1 7 5m4-3a3 3 0 0 0-2.862 3.903a.5.5 0 0 1-.117.498L2.773 11.84a.986.986 0 0 0 1.41 1.377l5.225-5.293a.5.5 0 0 1 .532-.116a3 3 0 0 0 4.046-3.088l-1.633 1.634a.5.5 0 0 1-.707 0l-2-2a.5.5 0 0 1 0-.707l1.634-1.634A3 3 0 0 0 11 2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 6px center; 
  background-size: 14px; 
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  border-radius: 5px; 
  border: 3px solid rgba(255, 255, 255, 0.5); 
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  vertical-align: middle;
  font-size: 0.6rem;
}

.other-badge {
  height: 0.6rem;
  display: inline-block;
  margin-left: 5px; 
  margin-right: 5px;
  margin-bottom: 1px;
  padding: 3px 8px 5px 24px; 
  background-color: rgba(255, 0, 255, 0.55); 
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M9 5h1V1H9v1H8v1h1Zm-8 6h1v-1H1Zm-1-1h1V5H0Zm2 2h7v-1H2Zm2-2h3V9H6V8H5v1H4ZM3 7h1V5H3ZM1 5h1V3h1V2H2V1H1Zm8 6h1v-1H9ZM7 7h1V5H7ZM3 4h5V3H3Zm7 6h1V5h-1Zm0 0'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 6px center; 
  background-size: 14px; 
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  border-radius: 5px; 
  border: 3px solid rgba(255, 255, 255, 0.5); 
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  vertical-align: middle;
  font-size: 0.6rem;
}

.major-badge {
  height: 0.6rem;
  display: inline-block;
  margin-left: 5px; 
  margin-right: 5px;
  margin-bottom: 1px;
  padding: 3px 8px 5px 24px; 
  background-color: rgba(255, 0, 0, 0.55); 
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'%3E%3Cpath d='M4 21.4V2.6a.6.6 0 0 1 .6-.6h11.652a.6.6 0 0 1 .424.176l3.148 3.148A.6.6 0 0 1 20 5.75V21.4a.6.6 0 0 1-.6.6H4.6a.6.6 0 0 1-.6-.6M8 10h8m-8 8h8m-8-4h4'/%3E%3Cpath d='M16 2v3.4a.6.6 0 0 0 .6.6H20'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 6px center; 
  background-size: 14px; 
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  border-radius: 5px; 
  border: 3px solid rgba(255, 255, 255, 0.5); 
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  vertical-align: middle;
  font-size: 0.6rem;
}

:where(#visitorCounterDisplay){
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-family: 'Geist Pixel';
    border: 1px solid #ffffff;
}
:where(#visitorCounterDisplay)::before {
    content: "";
    font-size: 1rem;
}

.view-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 8px 5px 24px; 
  background-color: rgba(155, 69, 113, 0.5); 
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 6px center; 
  background-size: 14px; 
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 0.8rem;
  border-radius: 5px; 
  border: 3px solid rgba(255, 255, 255, 0.5); 
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  vertical-align: middle;
}

.minor-badge {
  height: 0.6rem;
  display: inline-block;
  margin-left: 8px;
  padding: 3px 8px 5px 24px; 
  background-color: rgba(50, 50, 50, 0.5); 
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2048 2048'%3E%3Cpath fill='white' d='M1792 549v1499H128V0h1115zm-512-37h293l-293-293zm384 1408V640h-512V128H256v1792z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 6px center; 
  background-size: 14px; 
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 0.6rem;
  border-radius: 5px; 
  border: 3px solid rgba(255, 255, 255, 0.5); 
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  vertical-align: middle;
}

.collapsible {
  max-height: 100px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 0.3s ease-out, 
              opacity 0.3s ease-out, 
              margin 0.5s ease-out,
              padding 0.3s ease-out;
}

.collapsible.is-hidden {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  pointer-events: none; 
}

.arrow-icon {
  display: inline-block;
  font-size: 0.75rem;
  opacity: 0.7;
  transform: rotate(-180deg); 
  transition: transform 0.3s ease, opacity 0.3s ease;
  margin-left: 5px;
  justify-self: right;
}

.important-header {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.2s ease;
}

.important-header:hover {
  opacity: 0.8;
}

.important-header.active .arrow-icon {
  transform: rotate(0deg); 
  opacity: 1;
}

.liheader {
  height: 4px;
  border: 0;
  margin-top: 15px; margin-bottom: 15px;
  background-color: rgba(255, 255, 255, 0.7);
}
