/* =========================================================
   CSS VARIABLES
   ========================================================= */
:root {
  --bg: #FFFFF0;
  --fg: #eaeaea;
  --muted: #9aa0a6;
  --card: #141414;
  --acc: #4f46e5;
}


/* =========================================================
   RESET / BASE
   ========================================================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding-bottom: 64px;

  background: #fffff0;
  color: var(--fg);

  font: 16px/1.45 Rubik, Helvetica, Arial, sans-serif;
}

a {
  color: #8ab4ff;
  text-decoration: none;
}

.hidden {
  display: none !important;
}


/* =========================================================
   LAYOUT
   ========================================================= */
.wrap {
  max-width: 980px;
  margin: 10px auto;
  padding: 8px;
}

.card {
  background: #fffff0;
  border-radius: 14px;
  padding: 6px;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.card.no-shadow {
  box-shadow: none !important;
}

.spacer {
  flex: 1;
}


/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h1 {
  margin: 0 0 8px;
  font-size: 20px;
  text-align: center;
  color: grey;
}

h2 {
  margin: 16px 0 8px;
  font-size: 18px;
  text-align: center;
  color: grey;
}

.muted {
  color: var(--muted);
  opacity: 0.7;
  font-size: 14px;
}

.hint {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.target {
  margin-bottom: 28px;
  font-size: 14px;
  opacity: 0.75;
}

p.small{
    font-size: 10px;
}


/* =========================================================
   VIDEO
   ========================================================= */
.video-wrap {
  position: relative;
  overflow: hidden;

  background: #000;
  border-radius: 12px;
}

video {
  display: block;
  width: 100%;
  max-height: 72vh;
  border-radius: 10px;
}


/* Watermark canvas */
#wmCanvas {
  position: absolute;
  inset: 0;

  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: overlay;
}


/* =========================================================
   FORMS & BUTTONS
   ========================================================= */
.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;

  margin: 12px 0;
}

input[type="text"] {
  flex: 1;
  min-width: 200px;

  padding: 10px 12px;

  background: #0f0f12;
  color: grey;

  border: 1px solid #222;
  border-radius: 10px;
}

select,
button,
a.btn {
  width: 100%;
  padding: 10px 12px;

  background: #fff !important;
  border-radius: 20px;
  color: #095D6A !important;

  border-radius: 15px;
  text-align: center;
  font-weight: 500;

  cursor: pointer;
  box-shadow: 0 0.25rem 0.5rem 0 rgba(0, 0, 0, 0.05);
}

a.btn img{
    display: inline-block;
    height: 18px;
    margin-left: 5px;
    margin-bottom: -3px;
    /*width: 18px;*/
}

a.btn.primary {
  background: var(--acc);
  border: none;
}

/*button {*/
/*  margin-top: 12px;*/
/*  padding: 10px 18px;*/

/*  background: #0088cc;*/
/*  color: #fff;*/

/*  border: none;*/
/*  border-radius: 8px;*/
/*  font-size: 14px;*/
/*}*/


/* =========================================================
   UI ELEMENTS
   ========================================================= */
.pill {
  padding: 6px 10px;

  background: #1b1b1b;
  border: 1px solid #2a2a2a;
  border-radius: 999px;

  font-size: 12px;
}

.warning {
  margin: 16px 0;
  padding: 12px;

  background: #2a1a1a;
  border: 1px solid #ff4d4d4a;
  color: #ffbaba;

  border-radius: 10px;
  font-size: 14px;
}

pre {
  margin-top: 16px;
  padding: 12px;

  background: #111;
  border-radius: 8px;

  font-size: 12px;
  overflow-x: auto;
  text-align: left;
}


/* =========================================================
   TOAST
   ========================================================= */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);

  padding: 10px 14px;

  background: #1e1e1e;
  color: #fff;
  border: 1px solid #333;
  border-radius: 10px;

  font-size: 14px;
  opacity: 0;

  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-6px);
}


/* =========================================================
   TIMER
   ========================================================= */
.timer {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: var(--gap);
}

.unit {
  padding: 18px 16px;

  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.03)
  );

  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.num {
  font-size: clamp(36px, 9vw, 64px);
  font-weight: 800;
  line-height: 1;

  font-variant-numeric: tabular-nums;
}

.label {
  margin-top: 8px;
  letter-spacing: 0.4px;
  opacity: 0.85;
}

.done {
  display: none;
  margin-top: 18px;

  color: #86efac;
  font-weight: 600;
}

hr{
    display: inline-block;
    color: #fff;
    margin: 10px 0;
}

/* =========================================================
   MOBILE TIMER
   ========================================================= */
@media (max-width: 520px) {
  .timer {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   MOBILE BOTTOM NAV
   ========================================================= */
@media (min-width: 768px) {
  .mobile-bottom-nav {
    display: none;
  }
}

.mobile-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;

  height: calc(64px + 15px);
  padding-bottom: 15px;

  background: #ffffff;

  display: flex;
  justify-content: space-around;
  align-items: center;

  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
  z-index: 1000;

  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.nav-item {
  flex: 1;

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

  font-size: 12px;
  color: #095d6a;
  text-decoration: none;
}

.icon {
  width: 24px;
  height: 24px;

  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.icon-video {
  background-image: url("/img/video.png");
}

.icon-live {
  background-image: url("/img/mic.png");
}

.icon-support {
  background-image: url("/img/chat.png");
}
