

#container {
  text-align: center;
  position: relative;
  padding: 2rem;
}

/* ButtonImage: auto size + glow + squish-ready */
#buttonImage {
  max-width: min(70vw, 260px);      /* auto size, good on mobile & desktop */
  height: auto;
  cursor: pointer;
  user-select: none;
  transition: transform 0.1s ease, filter 0.2s ease;
  filter: drop-shadow(0 0 10px rgba(255, 190, 220, 0.7));
}

#buttonImage:hover {
  filter: drop-shadow(0 0 16px rgba(255, 200, 230, 0.9));
}

/* Squish on click */
#buttonImage:active {
  transform: scale(0.93);
  filter: drop-shadow(0 0 6px rgba(255, 170, 210, 0.7));
}

#game-title {
  font-size: 2.2rem;
  color: #d6d9ff;                  
  margin-bottom: 0.4rem;
  /* text-shadow: 0 0 10px rgba(255, 214, 240, 0.5); */
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.55) !important;
}

#game-desc {
  font-size: 1.1rem;
  color: #d6d9ff;               
  margin-bottom: 1.8rem;           /* give nice space before the buttonImage */
  opacity: 0.95;
}

.sct-message-wrap {
  width: 100%;
  display: flex;
  justify-content: center; /* centers the message block */
}

#message {
  font-size: 1.4rem;
  color: #d6d9ff;
  width: min(520px, 100%);   /* stable width, responsive */
  margin: 1rem auto 0;
  text-align: center;

  /* IMPORTANT for <pre> */
  white-space: pre-wrap;     /* wraps lines */
  word-break: break-word;    /* breaks long words if needed */

  /* optional: make it feel like the rabbit one */
  padding: 12px 14px;
  border-radius: 14px;
}

#message.show {
  height: 10.5em;
  opacity: 1;
  transform: scale(1);
  /* text-shadow: 0 0 8px rgba(252, 233, 245, 0.6); */
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.55) !important;
}


#badge {
  position: absolute;
  top: -5px;
  right: 10px;
  padding: 6px 12px;
  border-radius: 14px;
  background: rgba(255, 214, 240, 0.1);
  border: 1px solid rgba(255, 214, 240, 0.3);
  color: #d6d9ff;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 0 8px rgba(255, 214, 240, 0.25);
  backdrop-filter: blur(2px);
}

/* Remove ugly tap highlight on mobile */
html, body {
  -webkit-tap-highlight-color: transparent;
}

#buttonImage,
.sct-game-button {
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

#buttonImage:focus {
  outline: none;
}

/* CERTIFICATE */
.sct-cert {
  width: 100%;
  max-width: 820px;
  margin: 24px auto;
  padding: 14px;
}

.sct-cert__inner {
  position: relative;
  padding: 28px 26px 22px;
  border-radius: 16px;
  border: 2px solid rgba(255,255,255,0.18);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);

  /* paper vibe */
  background:
    radial-gradient(900px 500px at 20% 10%, rgba(255,255,255,0.12), transparent 55%),
    radial-gradient(700px 420px at 80% 30%, rgba(255,255,255,0.09), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.06));
  backdrop-filter: blur(6px);
}

.sct-cert__top {
  text-align: center;
  margin-bottom: 18px;
}

.sct-cert__title {
  font-size: 1.55rem;
  letter-spacing: 0.6px;
  font-weight: 800;
}

.sct-cert__subtitle {
  margin-top: 6px;
  opacity: 0.8;
  font-size: 0.95rem;
}

.sct-cert__body {
  text-align: center;
  padding: 10px 10px 4px;
}

.sct-cert__label {
  opacity: 0.85;
  margin-top: 10px;
}

.sct-cert__name {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 8px 0 6px;
}

/* Make the resolution area never change size */
.sct-cert .sct-cert__resolution {
  height: 10.5em;          /* fixed */
  box-sizing: border-box;  /* height includes padding/border */
  overflow: hidden;        /* stops growth */
  
  margin: 14px auto 10px;
  padding: 14px 16px;
  max-width: 680px;

  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;

  border-radius: 14px;
  border: 1px dashed rgba(255,255,255,0.28);
  background: rgba(0,0,0,0.20);

  display: flex;           /* keeps text nicely placed */
  align-items: center;
  justify-content: center;
  text-align: center;
}


.sct-cert__fineprint {
  margin-top: 10px;
  font-size: 0.9rem;
  opacity: 0.7;
}

.sct-cert__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
}

.sct-cert__sig {
  width: 55%;
  min-width: 240px;
}

.sct-cert__signature {
  font-family: "Great Vibes", cursive !important;

  font-size: 1.35rem;
  font-style: italic;
  letter-spacing: 0.6px;

  opacity: 0.85;
  margin-bottom: 6px;
  transform: rotate(-1deg);
}


.sct-cert__sigline {
  height: 2px;
  width: 100%;
  background: rgba(255,255,255,0.25);
  border-radius: 999px;
  margin-bottom: 8px;
}

.sct-cert__sigtext {
  font-size: 0.95rem;
  opacity: 0.85;
}

/* wax seal */
.sct-cert__seal {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  position: relative;

  /* red wax */
  background:
    radial-gradient(circle at 28% 24%, rgba(255,255,255,0.45), transparent 35%),
    radial-gradient(circle at 70% 78%, rgba(0,0,0,0.35), transparent 48%),
    linear-gradient(145deg, #b11212, #7e0b0b);

  border: 2px solid rgba(0,0,0,0.25);
  box-shadow:
    inset 0 2px 4px rgba(255,255,255,0.25),
    inset 0 -4px 6px rgba(0,0,0,0.35),
    0 14px 26px rgba(0,0,0,0.45);
}

.sct-cert__sealInner {
  position: absolute;
  inset: 10px;
  border-radius: 999px;
  border: 2px dashed rgba(255,255,255,0.26);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
  letter-spacing: 1px;
  font-weight: 900;

  gap: 0;           /* important */
  line-height: 1;   /* important */
}

.sct-cert__sealTop,
.sct-cert__sealBottom {
  line-height: 1;   /* important */
  margin: 0;        /* just in case */
  padding: 0;
}

.sct-cert__sealTop { font-size: 1.1rem; }
.sct-cert__sealBottom { font-size: 0.85rem; opacity: 0.85; }


/* big stamp */
.sct-cert__stamp {
  font-weight: bold;
  position: absolute;
  top: 18px;
  right: 18px;
  transform: rotate(12deg);
  font-weight: 900;
  letter-spacing: 2px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.22);
  background: rgb(243, 4, 36);
  opacity: 0.75;
  user-select: none;
}

@media (max-width: 520px) {
  .sct-cert__bottom {
    flex-direction: column;
    align-items: center;
  }

  .sct-cert__sig {
    width: 100%;
    min-width: 0;  /* critical: stops forcing overflow */
  }
   .sct-cert__inner {
    overflow: hidden; /* clips the rotated stamp if it pokes out */
  }
}