:root { --bg:#ffdb5c; }

* { box-sizing:border-box; }

html,body {
  margin:0;
  padding:0;
  background:var(--bg);
  color:#000;
  font-family:'M PLUS Rounded 1c', sans-serif;
}

.phone-frame {
  width:100%;
  max-width:560px;
  margin:0 auto;
  min-height:100vh;
  background:var(--bg);
  padding:2rem 1.2rem;
  box-shadow:none;
  border-radius:0;
}

.header,
.subheader {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  margin-bottom: 1rem;
}

.title,
.subtitle {
  margin:0;
  text-align:center;
  font-size:clamp(1.8rem,4.5vw,2.6rem);
  text-shadow:2px 2px 0 #fff;
}

.title {
  margin-top: 2rem;
}

.icon-fav {
  position: absolute;
  right: .6rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.9rem;
  line-height: 1;
  background: none;
  border: none;
  color: #fff;
  text-shadow: 1px 1px 2px #333;
  cursor: pointer;
}

#fav-count { display:none; }

.stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.btn {
  display: inline-block;
  width: 100%;
  max-width: 440px;
  text-align: center;
  padding: 1rem 1.25rem;
  font-size: clamp(1.05rem, 2.6vw, 1.28rem);
  font-weight: 800;
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 0 rgba(0,0,0,.18);
  transition: transform .08s ease;
  line-height: 1.3;
}

.btn:hover { transform: translateY(-1px) scale(1.02); }

.btn-1{ background:#ff4c4c; }
.btn-2{ background:#5cc23e; }
.btn-3{ background:#3b7eff; }
.btn-4{ background:#ffc23b; color:#333; }
.btn-5{ background:#b06cff; }
.btn-6{ background:#59c7be; }


.footer-links {
  text-align: center;
  margin-top:  1.1rem;
}

.footer-links .btn.btn-5 {
  display: inline-block;
  width: 100%;
  max-width: 440px;
  padding: 1rem 1.25rem;
  font-size: clamp(1.05rem, 2.6vw, 1.28rem);
  font-weight: 800;
  color: #fff;
  background: #8a4fff;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 0 rgba(0,0,0,.18);
  transition: transform .08s ease;
  line-height: 1.3;
  margin-bottom: 0.6rem;
}

.footer-links .btn.btn-5:hover {
  transform: translateY(-1px) scale(1.02);
}

.footer-text-links {
  text-align: center;
  margin-top: 1.3rem;
}

.footer-text-links a {
  display: inline-block;
  margin: 0 .5rem;
  font-size: 0.9rem;
  color: #000;
  text-decoration: underline;
  opacity: 0.8;
}

.footer-text-links a:hover {
  opacity: 1;
}




.card {
  background:#fff;
  color:#000;
  padding: 0.5rem 1rem;
  border-radius:12px;
  box-shadow:0 3px 6px rgba(0,0,0,.15);
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  margin-bottom:1rem;
  text-decoration:none;
  transition:background .2s;
  width:100%;
  max-width:440px;
  min-height: 4rem;
}

.card-text {
  display: inline-block;
  font-size: 1.1rem;
  line-height: 1;
}



.card:hover { background:#fff8e1; }

.image img {
  width:100%;
  border-radius:10px;
  margin-bottom:1rem;
}

.question {
  background:#fff;
  padding:1rem;
  border-radius:12px;
  margin-bottom:1rem;
  font-size:1.2rem;
  text-align:center;
}

.actions { text-align:center; margin-bottom:1rem; }

.btn-ghost {
  background:#fff;
  border:2px solid #000;
  border-radius:20px;
  padding:.5rem 1rem;
  margin:0 .5rem;
  font-weight:700;
  cursor:pointer;
}

.reveal {
  background:#fff8c4;
  border-radius:10px;
  padding:1rem;
  margin-bottom:1rem;
}

.reveal-title { font-weight:700; margin-bottom:.5rem; }

.pill-links {
  text-align: center;
  margin-top: 1rem;
}

.pill-links a {
  display: inline-block;
  background: #fff;
  border-radius: 50px;
  padding: .5rem 1rem;
  margin: .3rem;
  text-decoration: none;
  color: #000;
  border: 1px solid #000;
  font-weight: 700;
  white-space: nowrap;
}


.subheader {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  padding-right: 0;
}

.quiz-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;               
  align-items: center;                
  justify-content: center;
  gap: 0.25rem;                       
  font-size: clamp(1.4rem, 3.8vw, 1.9rem);
  font-weight: 800;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  color: #000;
  text-shadow: 1px 1px 0 #fff;
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;
}

.quiz-title .quiz-id {
  font-size: 1em;                     
  font-weight: inherit;               
  color: inherit;                     
  text-shadow: inherit;               
  margin: 0;
  padding: 0;
  line-height: 1;                     
  transform: translateY(0);           
  margin-left: 0.5rem;
}

.link-back,
.link-subtle {
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
}

.link-back { color: #6a2eff; }
.link-subtle { color: #000; opacity: 0.8; }
.link-subtle:hover { opacity: 1; }


.btn-shuffle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #ff9b28;       
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.25rem 0.5rem;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.2);
  transition: transform 0.08s ease, opacity 0.15s ease;
  white-space: nowrap;
  margin-right: 0.5rem;
}


.btn-shuffle:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

@media (max-width: 480px) {
  .btn-shuffle {
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    margin-left: 2rem;
    margin-right: 0;
  }
}


@media (max-width:480px){
  .phone-frame { padding:1.6rem 1rem; }
  .icon-fav { right:.5rem; font-size:1.7rem; }
  .quiz-title { font-size: clamp(1.1rem, 4vw, 1.5rem); }
}










.image img {
  width: 350px;
  height: 350px;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 1rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}








.question-with-image {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 6px rgba(0,0,0,.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  gap: 0.8rem;
  margin-bottom: 1rem;
  text-align: center;
}

.question-text {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.5;
}

.image-box {
  width: 70%;
  max-width: 300px;
  aspect-ratio: 1 / 1;      
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;       
  border-radius: 10px;
}




.actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.btn-ghost {
  display: inline-block;
  min-width: 120px;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.15rem;
  cursor: pointer;
  color: #fff;
  box-shadow: 0 4px 0 rgba(0,0,0,0.18);
  transition: transform 0.08s ease, opacity 0.15s ease;
}

#btn-hint {
  background: #ff9b28;
}

#btn-hint:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

#btn-answer {
  background: #3b7eff;
}

#btn-answer:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

@media (max-width: 480px) {
  .btn-ghost {
    font-size: 1rem;
    min-width: 110px;
    padding: 0.7rem 1.2rem;
  }
}



.pill-links .pill-title {
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  text-align: center;
  color: #000;
  text-shadow: 1px 1px 0 #fff;
}


.icon-fav-top {
  position: absolute;
  top: 0rem; 
  right: 2rem;
  font-size: 2rem;
  text-decoration: none;
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  transition: transform 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.icon-fav-top .fav-label {
  font-size: 0.65rem;
  color: #000;
  line-height: 1;
  margin-top: 0;
  text-shadow: 1px 1px 0 #fff;
}

@media (max-width: 480px) {
  .icon-fav-top{
    right: 0;
  }
}




.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, auto));
  gap: 0.5rem 1.8rem; 
  justify-content: center; 
  justify-items: center;   
  margin-top: 0.6rem;
}

.category-link {
  display: inline-block;
  font-weight: 700;
  color: #000;
  text-decoration: underline;
  font-size: 0.95rem;
  text-align: center;
  white-space: nowrap;
}

.category-link:hover {
  opacity: 0.8;
}

.back-to-top {
  text-align: center;
  margin-top: 1rem;
}

.back-to-top a{
  display: inline-block;
  font-weight: 800;
  color: #000;
  text-decoration: underline;
  font-size: 1rem;
}



.fav-link-area {
  text-align: center;     
  margin-top: 0.5rem;
  /* transform: translateX(-17.5%); */
}

.fav-link {
  display: inline-block;
  font-weight: 400;       
  font-size: 0.95rem;    
  color: #000;
  text-decoration: underline;
}

.fav-link:hover {
  opacity: 0.8;
}
