.tt-wrap{
  max-width:720px;
  margin:24px auto;
  padding:18px;
  border:none;
  border-radius:10px;
  background:var(--bg_color);
}

.tt-head{
  text-align:center;
}

.tt-title{
  font-size:14px;
  font-weight:700;
  color:#444444;
  background:#F8F9F8;
  display:inline-block;
  padding:8px 22px;
  border-radius:999px;
}

.tt-sub{
  margin-top:3px;
  line-height:1.7;
  color:var(--sub_color);
  font-size:14px;
  text-align:center;
}

.tt-row{
  display:flex;
  gap:12px;
  justify-content:center;
  margin-top:10px;
  flex-wrap:nowrap;
}

.tt-card{
  width:180px;
  max-width:30vw;
  perspective:900px;
}

.tt-btn{
  all:unset;
  display:block;
  width:100%;
  cursor:pointer;
}

.tt-btn.is-locked{
  cursor:default;
  opacity:.86;
}

.tt-inner{
  position:relative;
  width:100%;
  aspect-ratio:3/5;
  transform-style:preserve-3d;
  transition:transform 1.7s cubic-bezier(.22,.61,.36,1);
}

.tt-inner.is-flipped{
  transform:rotateY(1260deg);
}

.tt-face{
  position:absolute;
  inset:0;
  backface-visibility:hidden;
  border-radius:0;
  overflow:hidden;
  box-shadow:0 10px 24px var(--shadow_color);
}

.tt-back{
  background:var(--card_back_bg);
}

.tt-front{
  transform:rotateY(180deg);
}

.tt-face img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}

.tt-front img.is-reversed{
  transform:rotate(180deg);
}

.tt-result{
  margin-top:15px;
  padding:8px;
  background:var(--result_bg);
  border-radius:10px;
  opacity:1;
  transform:translateY(0);
  transition:opacity 1.2s cubic-bezier(.22,.61,.36,1), transform 1.2s cubic-bezier(.22,.61,.36,1);
}

.tt-result.is-prep{
  opacity:0;
  transform:translateY(-22px);
}

.tt-result-title{
  font-weight:700;
  margin-bottom:2px;
  color:var(--result_title_color);
  font-size:14px;
}

.tt-result-text{
  line-height:1.35;
  color:var(--result_text_color);
  font-size:14px;
}

.tt-foot{
  margin-top:10px;
}

.tt-note{
  font-size:13px;
  line-height:1.7;
  color:var(--note_color);
  text-align:center;
  opacity:1;
  transform:translateY(0);
  transition:opacity 1.2s cubic-bezier(.22,.61,.36,1), transform 1.2s cubic-bezier(.22,.61,.36,1);
}

.tt-note.is-prep{
  opacity:0;
  transform:translateY(-22px);
}

.tt-streak{
  display:none;

  max-width:580px;
  width:90%;
  margin:12px auto 0;
  box-sizing:border-box;

  padding:8px 10px;
  background:#F8F9F8;
  border-radius:10px;

  line-height:1.6;
  text-align:center;
  font-size:13px;

  transition:opacity 1.2s cubic-bezier(.22,.61,.36,1),
             transform 1.2s cubic-bezier(.22,.61,.36,1);
}

.tt-streak.is-visible{
  display:block;
}

.tt-streak.is-prep{
  opacity:0;
  transform:translateY(-22px);
}

.tt-share{
  display:none;
  margin-top:14px;
  gap:10px;
  justify-content:center;
  flex-wrap:wrap;
  align-items:center;
}

.tt-share.is-visible{
  display:flex;
}

.tt-share-label{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:34px;
  padding:0 10px;
  border-radius:999px;
  background:rgba(0,0,0,0.06);
  color:#444;
  font-size:12px;
  font-weight:700;
  line-height:1;
}

.tt-share-btn{
  appearance:none;
  border:0;
  padding:10px 14px;
  border-radius:10px;
  cursor:pointer;
  font-size:13px;
  line-height:1;
  color:#fff;
  font-weight:700;

  -webkit-tap-highlight-color:transparent;
  outline:none;
}

.tt-share-btn:focus{
  outline:none;
}

.tt-share-btn:active{
  filter:brightness(0.92);
}

.kitsune-tt-root .tt-el-share-x{
  background:#111;
}

.kitsune-tt-root {
margin-top: 0 !important;
}

.kitsune-tt-root .tt-el-share-line{
  background:#06C755;
}

.kitsune-tt-root .tt-el-share-x,
.kitsune-tt-root .tt-el-share-line{
  min-width:55px;
  text-align:center;
}

.kitsune-tt-root .tt-el-share-copy{
  background:#666;
  width:44px;
  padding-left:0;
  padding-right:0;
}

.kitsune-tt-root .tt-share-btn:hover{
  filter:brightness(0.92);
}

.kitsune-tt-root img{
  -webkit-touch-callout:none;
  -webkit-user-select:none;
  user-select:none;
  pointer-events:none;
}

.kitsune-tt-root .tt-btn{
  -webkit-user-select:none;
  user-select:none;
}

@media (max-width:420px){
  .tt-wrap{ padding:14px; }
  .tt-row{ gap:8px; }
  .tt-card{ max-width:31vw; }
}

.tt-toast{
  position:fixed;
  left:50%;
  bottom:18px;
  transform:translateX(-50%) translateY(8px);
  z-index:99999;

  background:rgba(0,0,0,0.78);
  color:#fff;
  font-size:13px;
  font-weight:700;
  line-height:1;

  padding:10px 14px;
  border-radius:999px;

  opacity:0;
  pointer-events:none;
  transition:opacity 180ms ease, transform 180ms ease;
}

.tt-toast.is-visible{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}