@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@200..1000&display=swap");

/* Header centering */
.page-header {
  width: 100%;
  text-align: center;
  margin-bottom: 16px;
  padding: 0px 20px 0px 20px;
}
/* Footer centering and positioning */
.page-footer {
  width: 100%;
  text-align: center;
  position: fixed;
  left: 0;
  bottom: 0;
  background: var(--bg);
  padding: 12px 0 8px 0;
  font-size: 1rem;
  color: var(--muted);
  z-index: 100;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.03);
}
.header-logo {
  display: block;
  margin: 32px auto 16px auto;
  max-width: 300px;
  width: 80%;
  height: auto;
}
/* Consolidated stylesheet for sprkcopy pages */

/* ===== questions.html styles ===== */
:root{
  --bg: #ffffff;
  --card: #ffffff;
  --ink: #1d1b18;
  --muted: #6b635a;
  --line: rgba(30, 20, 10, 0.12);
  --shadow: 0 18px 40px rgba(25, 18, 10, 0.10);
  --shadow-soft: 0 10px 26px rgba(25, 18, 10, 0.08);

  --gold-1: #f1ddb1;
  --gold-2: #caa156;
  --gold-3: #9a6b22;

  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;

  --font-serif: "Nunito", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  --font-sans: "Nunito", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.question-header {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--ink);
  margin: 0 0 7px 0;
  letter-spacing: 0.02em;
  align-items: center;
  padding-top: 6px;
  gap: 10px;
}

.category-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 12px 0;
  padding: 8px 16px;
  background: rgba(241, 221, 177, 0.20);
  border-radius: var(--radius-md);
  border: 1px solid rgba(202, 161, 86, 0.25);
}

.category-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.category-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold-3);
  letter-spacing: 0.01em;
}

.controlpanel-page .category-select-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 10px 0 14px;
}

.controlpanel-page .category-select-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.controlpanel-page .category-select {
  width: min(240px, 90vw);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(30, 20, 10, 0.18);
  background: rgba(255, 255, 255, 0.95);
  font-size: 1.05rem;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.controlpanel-page .category-select.is-placeholder {
  color: var(--muted);
}

.controlpanel-page .category-select option {
  color: var(--ink);
}

.card{
  width: min(520px, 100%);
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(30, 20, 10, 0.10);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 10px 16px 14px;
  backdrop-filter: blur(6px);
}

.pill-row{
  display: flex;
  justify-content: center;
  margin: 6px 0 14px;
  position: relative;
}

.rule{
  position: absolute;
  top: 50%;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(202,161,86,0.35), transparent);
  transform: translateY(-50%);
}

.pill{
  position: relative;
  padding: 6px 18px;
  border-radius: 16px;
  font-family: var(--font-serif);
  font-size: 18px;
  letter-spacing: 0.2px;
  color: #6b635a;
  background: rgba(241,221,177,0.25);
  border: none;
  box-shadow: none;
  font-weight: 500;
  outline: 1.5px dashed rgba(202,161,86,0.25);
  outline-offset: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
}

.field-label{
  font-size: 13px;
  color: var(--muted);
  margin: 10px 2px 8px;
}

.answer{
  width: 100%;
  min-height: 140px;
  resize: vertical;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(30, 20, 10, 0.14);
  background: rgba(255,255,255,0.90);
  box-shadow: var(--shadow-soft);
  font-size: 16px;
  line-height: 1.2;
  outline: none;
  margin-bottom: 0;
}
.bonus-answer {
  width: 100%;
  min-height: 60px;
  resize: vertical;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(30, 20, 10, 0.14);
  background: rgba(255,255,255,0.90);
  box-shadow: var(--shadow-soft);
  font-size: 16px;
  line-height: 1.2;
  outline: none;
  margin-bottom: 0;
}

.answer::placeholder{ color: rgba(60, 50, 40, 0.35); }
.bonus-answer::placeholder{ color: rgba(60, 50, 40, 0.35); }

.row{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 12px;
  align-items: end;
}

.questions-page .submit-row{
  border-top: 1px solid rgba(30,20,10,0.08);
  padding-top: 12px;
  margin-top: 16px;
}

.questions-page .submit-row .btn{
  width: 100%;
}

.points-wrap{
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
}

.questions-page .points-wrap{
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.points-label{
  font-size: 13px;
  color: var(--muted);
  margin: 10px 2px 8px;
  min-width: 54px;
}

.questions-page .points-label{
  margin: 10px 2px 4px;
  text-align: center;
}

.questions-page .points-buttons{
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.questions-page .points-btn-square{
  width: 50px;
  height: 50px;
  border-radius: 10px;
  border: 1px solid rgba(30, 20, 10, 0.14);
  background: rgba(255,255,255,0.90);
  font-size: 16px;
  font-family: var(--font-sans);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(25,18,10,0.08);
}

.questions-page .points-btn-square.active{
  background: #fff3c8;
  border-color: rgba(198, 216, 157, 0.6);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.18);
}

.questions-page .points-btn-square:disabled{
  background: #eeeeee;
  border-color: rgba(30, 20, 10, 0.12);
  color: rgba(30, 20, 10, 0.35);
  box-shadow: none;
  cursor: not-allowed;
}
.points{
  width: 74px;
  height: 40px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(30, 20, 10, 0.14);
  background: rgba(255,255,255,0.90);
  box-shadow: 0 10px 22px rgba(25,18,10,0.08);
  font-size: 16px;
  outline: none;
  text-align: center;
}

.btn{
  width: 100%;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(154,107,34,0.35);
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
  color: #2a1c0b;
  font-family: var(--font-sans);
  font-size: 18px;
  letter-spacing: 0.2px;
  box-shadow: 0 16px 30px rgba(154,107,34,0.18);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn:active{ transform: translateY(1px); }
.questions-page .btn:disabled{
  background: #dfe7d8;
  border-color: rgba(60, 50, 40, 0.2);
  color: rgba(60, 50, 40, 0.6);
  box-shadow: none;
  cursor: not-allowed;
}
.questions-page .btn.is-submitting,
.questions-page .btn.is-submitting:disabled{
  background: linear-gradient(180deg, #d7f0c9, #79c56e);
  border-color: rgba(62, 124, 72, 0.55);
  color: #1e3a1f;
  box-shadow: 0 14px 28px rgba(60, 140, 78, 0.25);
  cursor: progress;
}
.btn .twinkle{
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-55%);
  opacity: 0.8;
  font-size: 16px;
}

.btn__label{
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  gap: 8px;
}

.btn__sparkle-layer{
  position: absolute;
  inset: -10px;
  pointer-events: none;
  z-index: 1;
}

.btn__sparkle{
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11.2px;
  height: 11.2px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, #fff2c7 50%, rgba(255,255,255,0) 70%);
  opacity: 0;
  filter: drop-shadow(0 0 6px rgba(255, 224, 150, 0.7));
}

.btn.is-submitting::before{
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.9), rgba(255,255,255,0) 55%),
              radial-gradient(circle at 70% 70%, rgba(255,232,178,0.9), rgba(255,255,255,0) 60%);
  opacity: 0.75;
  filter: blur(10px);
  animation: submit-glow 900ms ease-in-out infinite;
  z-index: 0;
}

.btn.is-submitting .btn__sparkle{
  animation: sparkle-pop 900ms ease-out infinite;
  animation-delay: var(--d, 0ms);
}

@keyframes sparkle-pop{
  0%{ transform: translate(-50%, -50%) scale(0.15); opacity: 0; }
  35%{ opacity: 1; }
  100%{ transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1.1); opacity: 0; }
}

@keyframes submit-glow{
  0%{ opacity: 0.35; }
  50%{ opacity: 0.85; }
  100%{ opacity: 0.45; }
}


.pager{
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(30,20,10,0.08);
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.pager-bar{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.navbtn{
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(154,107,34,0.25);
  background: rgba(255,255,255,0.70);
  color: rgba(60,50,40,0.85);
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 22px rgba(25,18,10,0.06);
  cursor: pointer;
}

.navbtn.primary{
  background: linear-gradient(180deg, rgba(241,221,177,0.95), rgba(202,161,86,0.75));
  color: #000000 !important;
  border-color: rgba(154,107,34,0.30);
}

.navbtn span{
  display: inline-block;
  width: 0;
  height: 0;
  font-size: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.navbtn span:first-child{
  border-right: 8px solid #000000;
}

.navbtn span:last-child{
  border-left: 8px solid #000000;
}

.nums{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  color: rgba(60,50,40,0.85);
  font-size: 15px;
}

.num{
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}

.num.active{
  border-color: rgba(154,107,34,0.45);
  background: linear-gradient(180deg, rgba(241,221,177,0.9), rgba(202,161,86,0.45));
  box-shadow: 0 10px 18px rgba(154,107,34,0.14);
  font-weight: 600;
  color: #2a1c0b;
}

.dots{ opacity: 0.55; }

footer{
  width: min(520px, 100%);
  margin-top: auto;
  padding: 10px 6px 2px;
  text-align: center;
  color: rgba(60,50,40,0.65);
  font-size: 13px;
}
footer a{
  color: inherit;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 10px;
}
footer a:hover{
  background: rgba(202,161,86,0.10);
}

/* Slightly more “desktop-like” spacing if viewed wider */
@media (min-width: 560px){
  .wrap{ padding: 28px 18px 20px; }
  .card{ padding: 22px 20px 16px; }
  .row{
    grid-template-columns: 160px 1fr;
    gap: 14px;
  }
  .btn{ height: 44px; }
  .pager{ grid-template-columns: 1fr; }
}


/* ===== host.html styles ===== */

/* header now sized for logo instead of text */
.header{
  text-align:center;
  padding:0px 20px 0px;
}

.header svg{
  width:min(420px, 92vw);
  height:auto;
}

.container{
  max-width:1200px;
  margin:0 auto;
  padding:10px 24px 40px;
}

.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:18px;
}

.question-block{
  display:flex;
  align-items:center;
  gap:16px;
}

.passcode-label{
  font-size:15px;
  color:var(--muted);
  display:flex;
  gap:10px;
  align-items:center;
  margin-top: 0;
}
.passcode-input{
  width:95px;
  height:46px;
  padding:0 16px;
  border-radius:12px;
  border:1.5px solid var(--line);
  font-size:22px;
  font-family: var(--font-mono, monospace);
  text-align:center;
  font-weight: 600;
  background: #fff9f2;
  box-shadow: 0 2px 8px rgba(202,161,86,0.06);
  transition: border 0.2s;
  margin-right: 2px;
  vertical-align: middle;
  display: flex;
  align-items: center;
  margin-top: 0;
}
.controls-top {
  display: flex;
  align-items: center;
  gap: 16px;
}
.controls-top .reset-game{
  height: 46px;
  background: #ffc772;
  border-color: #c9c9c9;
  color: #2e2e2e;
  box-shadow: 0 10px 22px rgba(25,18,10,0.06);
}
.controls-top .leaderboard-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  border: none;
  background: #b5db83;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.08);
}

.controls-top .leaderboard-icon {
  width: 24px;
  height: 24px;
  fill: #ffffff;
}
.reset-btn{
  background:linear-gradient(180deg,#ffecec,#ffd7d7);
  border-color:rgba(200,30,30,0.12);
  color:#7a1414;
}

.pill{
  padding:8px 18px;
  border-radius:999px;
  background:linear-gradient(180deg,var(--gold-1),var(--gold-2));
  font-family:var(--font-serif);
  font-size:18px;
  height: 46px;
}

.btn{
  height:40px;
  border-radius:14px;
  border:1px solid rgba(154,107,34,0.35);
  background:linear-gradient(180deg,var(--gold-1),var(--gold-2));
  font-family:var(--font-sans);
  padding:0 16px;
  cursor:pointer;
}

.btn.nav-prev,
.btn.nav-next {
  width: 32px;
  padding: 0;
  background: rgb(226, 226, 226);
}

.card{
  background:white;
  border-radius:20px;
  box-shadow:var(--shadow);
  padding:18px 18px;
  border:1px solid var(--line);
}

table{
  width:100%;
  border-collapse:collapse;
  font-size:14px;
}

thead{
  color:var(--muted);
  font-weight:600;
  border-bottom:1px solid var(--line);
}

th, td{
  padding:13px 10px 4px 10px;
  text-align:left;
  vertical-align:top;
}

tbody tr{
  border-bottom:1px solid var(--line);
}

.team{
  font-weight:600;
  font-size:15px;
  padding-top: 10px;
}

.answer{
  max-width:480px;
  line-height:1.35;
}

.points-controls{
  display:flex;
  gap:6px;
  align-items:center;
  margin:-5px 0px 4px -4px
}

.points-value{
  min-width:30px;
  text-align:center;
  font-weight:700;
  font-size:15px;
}

.points-btn{
  width:28px;
  height:28px;
  border-radius:8px;
  border:1px solid var(--line);
  background:#fff;
  cursor:pointer;
  font-weight:700;
}

.total{
  font-weight:700;
  font-size:15px;
  text-align:center;
  padding-top: 10px;
}

.footerbar{
  display:flex;
  justify-content:space-between;
  gap:7px;
  margin-top:0;
}

.arrow{
  display:inline-block;
  width:0;
  height:0;
  border-top:6px solid transparent;
  border-bottom:6px solid transparent;
}
.arrow.left{
  border-right:8px solid currentColor;
  margin-right:6px;
}
.arrow.right{
  border-left:8px solid currentColor;
  margin-left:6px;
}

/* Control panel specific overrides: let the .card fill the container
  and keep footer nav buttons small (only for host.html). */
.container > .card {
  width: 100%;
  max-width: 100%;
}

.footerbar .btn {
  width: auto;
  padding: 8px 14px;
  height: 40px;
  font-family: var(--font-sans);
  font-size: 14px;
}


/* ===== play.html styles ===== */

.wrap{
  min-height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:22px 16px 18px;
  gap:14px;
}

.logo{
  width:min(360px, 92vw);
  text-align:center;
  padding-top:6px;
}
.logo svg{width:100%; height:auto}

.text{
  width:100%;
  height:46px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(30,20,10,0.14);
  background:rgba(255,255,255,0.90);
  box-shadow:var(--shadow-soft);
  font-size:16px;
  outline:none;
}
.text::placeholder{color:rgba(60,50,40,0.35)}

/* 4-digit passcode */
.code-row{
display:flex;
justify-content:center;
gap:12px;
margin-top:10px;
}

.digit{
width:64px;
height:52px;
border-radius:16px;
border:1px solid rgba(30,20,10,0.14);
background:rgba(255,255,255,0.90);
box-shadow:var(--shadow-soft);
font-size:22px;
text-align:center;
outline:none;
font-family:var(--font-sans);
}

.questions-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 16px;
}

.questions-page .pager-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.questions-page .navbtn {
  flex: 0 0 auto;
  width: 120px;
}

.questions-page .question-header {
  text-align: center;
}

.questions-page .question-progress {
  width: 100%;
  height: 10px;
  background: #e2e2e2;
  border-radius: 999px;
  margin: 6px 0 14px;
  overflow: hidden;
}

.questions-page .question-progress__bar {
  height: 100%;
  width: 5%;
  background: #88c97a;
  border-radius: inherit;
}

.questions-page main.card {
  margin-top: 32px;
  margin-bottom: 32px;
}

.questions-page .team-name {
  margin: 0 auto 10px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: #3a2a15;
  border: 1px solid rgba(185 185 185 / 25%);
}

.questions-page .team-name-wrap {
  text-align: center;
  margin-top: 4px;
}

.questions-page .btn {
  border: none;
  background: #bee38e;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.08);
  font-weight: 600;
  color: rgb(0, 0, 0);
}

.questions-page #footer,
.questions-page #footer .page-footer {
  position: static !important;
}

.questions-page #footer {
  width: 100%;
  margin-top: auto;
}

.join-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 16px;
}

.join-page .wrap {
  min-height: auto;
}

.join-page .card {
  width: min(600px, 100%);
  padding: 24px 22px 22px;
}

.join-page .pill-row {
  margin: 6px 0 18px;
}

.join-page .pill {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: none;
  border: none;
  box-shadow: none;
  outline: none;
  height: auto;
  padding: 0px 0px 15px;
}

.join-page .rule {
  top: 100%;
  transform: translateY(8px);
}

.join-page .text {
  height: 54px;
  font-size: 17px;
}

.join-page .code-row {
  gap: 14px;
}

.join-page .digit {
  width: 70px;
  height: 60px;
  font-size: 24px;
}

.join-page .btn {
  margin-top: 24px;
  border: none;
  background: #bee38e;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.08);
  font-weight: 600;
  color: rgb(0, 0, 0);
}

.join-page .btn:disabled {
  background: #dfe7d8;
  color: rgba(0, 0, 0, 0.45);
  box-shadow: none;
  cursor: not-allowed;
}

.join-page .btn.is-joining,
.join-page .btn.is-joining:disabled {
  background: #bee38e;
  color: rgb(0, 0, 0);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.08);
  cursor: progress;
}

.join-page #footer,
.join-page #footer .page-footer {
  position: static !important;
}

.join-page #footer {
  width: 100%;
  margin-top: auto;
}

/* ===== pub/host.html page-scoped styles ===== */
.controlpanel-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 16px;
}

.controlpanel-page .container {
  flex: 1 0 auto;
}

.controlpanel-page table {
  table-layout: fixed;
}

.controlpanel-page td.answer,
.controlpanel-page td.bonus-answer {
  word-wrap: break-word;
  white-space: pre-wrap;
  min-height: 60px;
  padding: 12px 8px;
  vertical-align: top;
  overflow-wrap: break-word;
}

.controlpanel-page td.bonus-answer {
  background-color: white;
}

.controlpanel-page tbody tr {
  height: auto;
}

.controlpanel-page #footer,
.controlpanel-page #footer .page-footer {
  position: static !important;
}

.controlpanel-page #footer {
  width: 100%;
  margin-top: auto;
}

/* Control panel buttons styled like questions submit button, colors preserved. */
.controlpanel-page .footerbar .btn,
.controlpanel-page .controls-top .reset-game {
  border: none;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.08);
  font-weight: 600;
}

.leaderboard-page td.total {
  text-align: left;
}

.leaderboard-page td.rank {
  font-weight: 700;
  font-size: 19px;
  color: #8a8a8a;
  padding-top: 7px;
}

.leaderboard-page tr.is-top td {
  background: linear-gradient(180deg, #f05c33 0%, #f26a3c 55%, #ff8a55 100%);
  color: #fff;
}

.leaderboard-page tr.is-top td.rank {
  font-weight: 800;
  color: #fff;
}

.leaderboard-page tr.is-top td:first-child {
  border-radius: 12px 0 0 12px;
}

.leaderboard-page tr.is-top td:last-child {
  border-radius: 0 12px 12px 0;
}

.leaderboard-page tr.is-top td {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 6px 16px rgba(240,90,40,0.25);
}

/* Solid curved outline behind the Submit Answer button on the questions page */
.questions-page .submit-row{
  position: relative; /* stacking context for the pseudo-outline */
  z-index: 0;
}

.questions-page .submit-row .btn{
  position: relative;
  z-index: 2; /* keep the button above the outline */
}

.questions-page .submit-row::after{
  content: "";
  position: absolute;
  left: 50%;
  top: 61%;
  width: calc(100% + 4px);
  height: calc(100% + -8px);
  transform: translate(-50%, -50%) scaleX(1) scaleY(1);
  border-radius: 16px;
  border: 15px solid rgba(0, 0, 0, 0.113);
  box-sizing: border-box;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 180ms ease, transform 250ms ease;
}

/* Show outline only when the submit button inside is enabled */
.questions-page .submit-row:has(.btn:not(:disabled))::after{
  opacity: 1;
  animation: submitOutlineBreath 1.6s ease-in-out infinite;
}

@keyframes submitOutlineBreath{
  0%{ opacity: 0.5; border-radius: 16px;transform: translate(-50%, -50%) scaleX(1) scaleY(1); }
  50%{ opacity: 1; border-radius: 18px; transform: translate(-50%, -50%) scaleX(1.011) scaleY(1.12); }
  100%{ opacity: 0.5; border-radius: 16px; transform: translate(-50%, -50%) scaleX(1) scaleY(1); }
}

