/* ============================================================
   Tool Detail Page — Refreshed UI
   ============================================================ */

/* --- reveal animation (stagger) --- */
.td-reveal {
  opacity:0; transform:translateY(30px) scale(.97);
  transition: opacity .5s cubic-bezier(.34,1.56,.64,1), transform .5s cubic-bezier(.34,1.56,.64,1);
}
.td-reveal.visible { opacity:1; transform:translateY(0) scale(1); }
.td-reveal:nth-child(2) { transition-delay:.06s; }
.td-reveal:nth-child(3) { transition-delay:.12s; }
.td-reveal:nth-child(4) { transition-delay:.18s; }
.td-reveal:nth-child(5) { transition-delay:.24s; }
.td-reveal:nth-child(6) { transition-delay:.30s; }

/* --- detail layout --- */
.detail-wrap{
  display:block;
  padding: 20px 0 40px;
}

.detail-hero{ padding: 24px; }

/* --- skeleton loading --- */
@keyframes shimmer {
  0% { background-position:-200% 0; }
  100% { background-position:200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, rgba(24,32,51,.06) 25%, rgba(24,32,51,.03) 50%, rgba(24,32,51,.06) 75%);
  background-size:200% 100%;
  animation: shimmer 1.5s ease infinite;
  border-radius:8px; color:transparent !important;
}
.detail-hero .inner { transition: opacity .3s ease; }

/* --- breadcrumb --- */
.crumb{
  display:flex; gap:8px; flex-wrap:wrap;
  color: rgba(91,100,122,.8);
  font-size:12px; font-weight:800;
  margin-bottom: 12px;
}
.crumb a{
  color: #3aa6ff;
  transition: color .15s;
}
.crumb a:hover{ text-decoration:underline; color:#7b5cff; }

/* --- title --- */
.tool-title {
  margin: 0;
  padding: 0 0 14px 0;
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: -.2px;
  font-weight: 900;
}

.tool-lead{
  margin:0;
  color: rgba(24,32,51,.55);
  font-size:16px;
  line-height:1.8;
  font-weight:700;
}

/* --- like button (game-style) --- */
.like-wrap{ position:absolute; top:18px; right:30px; margin:0; z-index:2; display:flex; align-items:center; gap:8px; }
.like-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 24px;
  border-radius:14px;
  border:2px solid rgba(24,32,51,.08);
  background:#fff;
  cursor:pointer;
  font-family:inherit;
  font-weight:900;
  font-size:15px;
  color:rgba(24,32,51,.5);
  transition:all .2s cubic-bezier(.34,1.56,.64,1);
  position:relative; overflow:hidden;
}
.like-btn::after{
  content:''; position:absolute; inset:0;
  background:radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(255,90,165,.15), transparent 60%);
  opacity:0; transition:opacity .2s;
  pointer-events:none;
}
.like-btn:hover::after{ opacity:1; }
.like-btn:hover{
  border-color:rgba(255,90,165,.4);
  color:var(--pink);
  transform:translateY(-3px) scale(1.05);
  box-shadow:0 6px 20px rgba(255,90,165,.15);
}
.like-btn.liked{
  border-color:var(--pink);
  background:rgba(255,90,165,.06);
  color:var(--pink);
  animation: likedPop .4s cubic-bezier(.34,1.56,.64,1);
}
@keyframes likedPop {
  0% { transform:scale(1); }
  40% { transform:scale(1.15) rotate(-3deg); }
  100% { transform:scale(1); }
}
.like-icon{
  font-size:20px; line-height:1;
  transition:transform .2s cubic-bezier(.34,1.56,.64,1);
}
.like-btn:hover .like-icon{ transform:scale(1.3) rotate(-10deg); }
.like-btn:active .like-icon{ transform:scale(1.5); }
.like-count{ font-size:14px; }
.bookmark-btn{
  padding:10px 16px;
}
.bookmark-btn::after{
  background:radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(255,198,64,.18), transparent 60%);
}
.bookmark-btn:hover{
  border-color:rgba(255,190,42,.55);
  color:#e5a900;
  box-shadow:0 6px 20px rgba(255,190,42,.16);
}
.bookmark-btn.bookmarked{
  border-color:#f3b515;
  background:rgba(255,190,42,.08);
  color:#e2a400;
  animation: likedPop .4s cubic-bezier(.34,1.56,.64,1);
}
.bookmark-icon{
  font-size:20px;
  line-height:1;
  transition:transform .2s cubic-bezier(.34,1.56,.64,1);
}
.bookmark-btn:hover .bookmark-icon{ transform:scale(1.3) rotate(10deg); }
.bookmark-btn:active .bookmark-icon{ transform:scale(1.5); }

/* --- meta chips (game tags) --- */
.meta-chips{
  display:flex; gap:6px; flex-wrap:wrap;
  margin-top: 14px;
}
.chip{
  padding:6px 12px;
  border-radius:10px;
  background: rgba(255,255,255,.8);
  border:1px solid rgba(24,32,51,.08);
  font-size:12px; font-weight:800;
  color: rgba(24,32,51,.65);
  transition: all .2s cubic-bezier(.34,1.56,.64,1);
  cursor:default;
}
.chip:hover {
  background:rgba(58,166,255,.08); border-color:rgba(58,166,255,.25);
  transform:translateY(-2px) scale(1.05);
  box-shadow:0 3px 10px rgba(58,166,255,.1);
}
.chip strong{ font-weight:900; }
.chip.c1{ background: rgba(58,166,255,.08); border-color: rgba(58,166,255,.15); }
.chip.c2{ background: rgba(53,208,186,.08); border-color: rgba(53,208,186,.15); }
.chip.c3{ background: rgba(123,92,255,.08); border-color: rgba(123,92,255,.15); }

/* --- hero image --- */
.hero-grid{
  display:grid; grid-template-columns: 1fr;
  gap:10px; margin-top: 18px;
}
.hero-media{
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(24,32,51,.08);
  background: #fff;
  aspect-ratio: 16 / 9;
  box-shadow: 0 4px 20px rgba(24,32,51,.06);
  transition: box-shadow .25s ease;
  position:relative;
}
.hero-media:hover {
  box-shadow: 0 12px 40px rgba(24,32,51,.12);
  border-color:rgba(58,166,255,.2);
}
.hero-media img{
  width:100%; height:100%; object-fit: cover; display:block;
  position:absolute; top:0; left:0;
  transition: transform .45s cubic-bezier(.4,0,.2,1), filter .3s;
}
.hero-media img.slide-current { position:relative; }
.hero-media:hover img.slide-current{ transform:scale(1.02); filter:brightness(1.02); }

/* --- hero slider arrows --- */
.hero-arrow{
  position:absolute; top:50%; z-index:2;
  transform:translateY(-50%);
  width:40px; height:40px; border-radius:50%;
  background:rgba(255,255,255,.85);
  border:1px solid rgba(24,32,51,.08);
  cursor:pointer; display:flex; align-items:center; justify-content:center;
  box-shadow:0 2px 10px rgba(24,32,51,.1);
  transition: all .2s cubic-bezier(.34,1.56,.64,1);
  opacity:0;
}
.hero-media:hover .hero-arrow{ opacity:1; }
.hero-arrow:hover{
  background:#fff;
  transform:translateY(-50%) scale(1.15);
  box-shadow:0 4px 16px rgba(58,166,255,.2);
}
.hero-arrow:active{ transform:translateY(-50%) scale(.95); }
.hero-arrow svg{ width:18px; height:18px; stroke:rgba(24,32,51,.6); fill:none; stroke-width:2.5; stroke-linecap:round; stroke-linejoin:round; }
.hero-arrow:hover svg{ stroke:#3aa6ff; }
.hero-arrow.prev{ left:12px; }
.hero-arrow.next{ right:12px; }

/* --- hero dots --- */
.hero-dots{
  display:flex; justify-content:center; gap:8px;
  margin-top:12px;
}
.hero-dot{
  width:10px; height:10px; border-radius:50%;
  background:rgba(24,32,51,.15);
  border:none; cursor:pointer; padding:0;
  transition: all .25s cubic-bezier(.34,1.56,.64,1);
}
.hero-dot:hover{ background:rgba(58,166,255,.4); transform:scale(1.3); }
.hero-dot.active{
  background:#3aa6ff;
  transform:scale(1.2);
  box-shadow:0 0 8px rgba(58,166,255,.3);
}

/* --- Fixed DL bar --- */
.dl-fixed-bar{
  position:fixed; bottom:0; left:0; right:0; z-index:80;
  background:rgba(255,255,255,.95);
  backdrop-filter:blur(12px);
  border-top:1px solid rgba(24,32,51,.08);
  box-shadow:0 -4px 20px rgba(24,32,51,.08);
  padding:14px 0;
}
.dl-fixed-inner{
  max-width:var(--max, 1100px);
  margin:0 auto;
  padding:0 22px;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.dl-fixed-info{ flex:1; min-width:0; }
.dl-fixed-title{
  font-size:15px; font-weight:900;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.dl-fixed-meta{
  display:flex; align-items:center; gap:8px; margin-top:2px;
  font-size:12px; font-weight:700; color:rgba(24,32,51,.5);
}
.dl-fixed-acquired{
  color:#35d0ba; font-weight:900;
}
.dl-fixed-actions{
  display:flex; align-items:center; gap:10px; flex-shrink:0;
}
.dl-fixed-actions .dl-big{
  padding:16px 44px; font-size:17px; border-radius:14px;
  white-space:nowrap;
}
.dl-fixed-actions .purchase-btn{
  padding:16px 36px; font-size:15px; border-radius:14px;
  white-space:nowrap;
}
.dl-fixed-bar .dl-message{
  max-width:var(--max, 1100px);
  margin:6px auto 0; padding:0 22px;
}
@media (max-width:640px){
  .dl-fixed-inner{ flex-direction:column; gap:8px; }
  .dl-fixed-actions{ width:100%; }
  .dl-fixed-actions .dl-big{ width:100%; }
  .dl-fixed-actions .purchase-btn{ width:100%; }
}

.dl-big{
  display:flex; align-items:center; justify-content:center; gap:10px;
  padding: 16px 14px;
  border-radius: 16px;
  border:none; width:100%; cursor:pointer;
  font-family:inherit; font-weight:900; font-size:18px;
  color:#fff;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 12px 30px rgba(58,166,255,.2);
  transition: all .2s cubic-bezier(.34,1.56,.64,1);
  position:relative; overflow:hidden;
}
.dl-big::before{
  content:''; position:absolute; top:-50%; left:-50%;
  width:200%; height:200%;
  background:linear-gradient(45deg, transparent 40%, rgba(255,255,255,.2) 50%, transparent 60%);
  transition: transform .5s;
  transform:translateX(-100%);
}
.dl-big:hover::before{ transform:translateX(100%); }
.dl-big:hover{
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 18px 44px rgba(58,166,255,.3);
}
.dl-big:active{
  transform: scale(.95);
  transition-duration:.08s;
}

/* DL message */
.dl-message{
  margin-top:10px; padding:8px 12px;
  border-radius:12px;
  background:rgba(53,208,186,.06);
  border:1px solid rgba(53,208,186,.15);
  font-size:13px; font-weight:800;
  color:rgba(32,140,120,.85);
  text-align:center;
}

/* ticket info */
.ticket-meta{
  display:flex; align-items:center; justify-content:space-between;
  margin-top:10px; padding:8px 12px;
  border-radius:12px;
  background:rgba(58,166,255,.04);
  border:1px solid rgba(58,166,255,.1);
  font-size:12px; font-weight:800;
  color:rgba(24,32,51,.65);
}
.ticket-meta .ticket-badge,
.dl-fixed-actions .ticket-badge{
  display:inline-flex; align-items:center; gap:6px;
  padding:8px 16px; border-radius:12px;
  background:linear-gradient(135deg, rgba(58,166,255,.08), rgba(123,92,255,.08));
  border:1px solid rgba(58,166,255,.15);
  font-weight:800; font-size:12px;
  color:rgba(24,32,51,.55);
  white-space:nowrap;
}
.ticket-badge-label{ letter-spacing:.3px; }
.ticket-badge-num{
  font-size:20px; font-weight:900; line-height:1;
  background:linear-gradient(135deg, var(--brand,#3aa6ff), var(--brand2,#7b5cff));
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
  background-clip:text;
}
.ticket-badge-unit{ font-size:12px; }

/* divider */
.dl-divider{
  display:flex; align-items:center; gap:12px;
  margin:14px 0;
}
.dl-divider::before, .dl-divider::after{
  content:''; flex:1; height:1px;
  background:rgba(24,32,51,.08);
}
.dl-divider span{
  font-size:11px; font-weight:800;
  color:rgba(91,100,122,.45);
}

/* purchase button */
.purchase-btn{
  display:flex; align-items:center; justify-content:center; gap:8px;
  padding:15px 14px; border-radius:16px;
  border:none; width:100%; cursor:pointer;
  font-family:inherit; font-weight:900; font-size:18px;
  color:#fff;
  background:linear-gradient(135deg, #c258ff, #ff5aa5);
  box-shadow:0 12px 28px rgba(194,88,255,.18);
  transition: all .25s cubic-bezier(.34,1.56,.64,1);
  position:relative; overflow:hidden;
}
.purchase-btn::before{
  content:''; position:absolute; inset:0;
  background:linear-gradient(135deg, rgba(255,255,255,.15) 0%, transparent 50%);
  pointer-events:none;
}
.purchase-btn::after{
  content:''; position:absolute; top:-50%; left:-50%;
  width:200%; height:200%;
  background:linear-gradient(45deg, transparent 40%, rgba(255,255,255,.2) 50%, transparent 60%);
  transition: transform .5s;
  transform:translateX(-100%);
}
.purchase-btn:hover::after{ transform:translateX(100%); }
.purchase-btn:hover{
  transform:translateY(-3px) scale(1.03);
  box-shadow:0 18px 44px rgba(194,88,255,.28);
}
.purchase-btn:active{
  transform:scale(.95);
  transition-duration:.08s;
}
.purchase-note{
  margin-top:8px; text-align:center;
  font-size:11px; font-weight:700;
  color:rgba(91,100,122,.55);
}

/* acquired */
.acquired-wrap{ text-align:center; padding:8px 0 4px; }
.acquired-wrap .acquired-icon{
  display:inline-flex; align-items:center; justify-content:center;
  width:48px; height:48px; border-radius:16px;
  background:linear-gradient(135deg, rgba(53,208,186,.15), rgba(58,166,255,.1));
  border:2px solid rgba(53,208,186,.25);
  font-size:24px; margin-bottom:8px;
}
.acquired-wrap .acquired-label{
  font-size:14px; font-weight:900;
  color:rgba(32,140,120,.85); margin-bottom:4px;
}
.purchased-badge{ display:none; }

.dl-note {
  margin-top: 10px;
  font-size: 14px; font-weight: 800;
  color: rgba(91, 100, 122, .8);
}
.dl-note a { font-size: 15px; }

/* --- section panels --- */
.section .panel{
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
  position:relative;
}
.section .panel:hover{
  transform: translateY(-3px);
}

.section h2 {
  display:flex; align-items:center; gap:12px;
  font-size:24px; margin-bottom:18px;
}
.section h2 .emoji {
  display:inline-flex; align-items:center; justify-content:center;
  width:44px; height:44px; border-radius:14px;
  background:rgba(58,166,255,.08);
  font-size:22px; flex-shrink:0;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), background .3s;
}
.section .panel:hover h2 .emoji{
  transform:rotate(-8deg) scale(1.1);
  background:rgba(58,166,255,.14);
}

/* --- gallery --- */
.gallery{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:12px;
}
@media (max-width: 760px){ .gallery{ grid-template-columns: 1fr; } }

.shot{
  border-radius: 16px;
  overflow:hidden;
  border: 3px solid transparent;
  background: #fff;
  aspect-ratio: 16/9;
  display:block;
  transition: all .2s cubic-bezier(.34,1.56,.64,1);
  outline:2px solid rgba(24,32,51,.06);
  outline-offset:-2px;
}
.shot:hover{
  border-color: #3aa6ff;
  outline:none;
  box-shadow: 0 0 0 3px rgba(58,166,255,.2), 0 8px 24px rgba(58,166,255,.15);
  transform: scale(1.02);
}
.shot img{
  width:100%; height:100%; object-fit: cover; display:block;
}

/* --- thumbnail assets --- */
.thumbnail-assets-panel{
  overflow:hidden;
}
.thumbnail-assets-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:28px 40px;
  align-items:start;
  margin-bottom:28px;
  padding-top: 9px;
}
.thumbnail-asset-card{
  min-width:0;
}
.thumbnail-asset-preview{
  display:block;
  aspect-ratio:16 / 9;
  overflow:hidden;
  border-radius:4px;
  background:
    linear-gradient(45deg, rgba(24,32,51,.04) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(24,32,51,.04) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(24,32,51,.04) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(24,32,51,.04) 75%);
  background-size:20px 20px;
  background-position:0 0, 0 10px, 10px -10px, -10px 0;
  border:1px solid rgba(24,32,51,.16);
  box-shadow:0 4px 14px rgba(24,32,51,.18);
  transition:transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s, border-color .2s;
}
.thumbnail-asset-preview:hover{
  transform:translateY(-3px) scale(1.01);
  border-color:rgba(58,166,255,.45);
  box-shadow:0 10px 28px rgba(58,166,255,.18);
}
.thumbnail-asset-preview img{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
}
.thumbnail-asset-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:6px 4px 0;
  color:rgba(91,100,122,.78);
  font-size:13px;
  font-weight:500;
  line-height:1.35;
}
.thumbnail-asset-credit{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.thumbnail-asset-download{
  flex-shrink:0;
  color:rgba(91,100,122,.82);
  text-decoration:none;
  transition:color .15s ease;
}
.thumbnail-asset-download:hover{
  color:#3aa6ff;
  text-decoration:underline;
}
.thumbnail-upload{
  padding:12px 0 0;
}
.thumbnail-upload-field{
  position:relative;
}
.thumbnail-upload-hp{
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
}
.thumbnail-upload-drop{
  width:100%;
  min-height:60px;
  border-radius:28px;
  border:1px solid rgba(24,32,51,.12);
  background:rgba(255,255,255,.92);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9), 0 6px 18px rgba(24,32,51,.12);
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:12px;
  padding:12px 60px 12px 24px;
  color:rgba(91,100,122,.42);
  font-family:inherit;
  cursor:pointer;
  transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease, color .18s ease, background .18s ease;
}
.thumbnail-upload-drop:hover,
.thumbnail-upload-drop.dragover{
  border-color:rgba(58,166,255,.34);
  background:#fff;
  color:rgba(58,166,255,.9);
  box-shadow:0 10px 28px rgba(58,166,255,.14);
  transform:translateY(-2px);
}
.thumbnail-upload-drop:disabled{
  cursor:wait;
  opacity:.7;
  transform:none;
}
.thumbnail-upload-label{
  flex-shrink:0;
  color:rgba(91,100,122,.36);
  font-size:16px;
  font-weight:900;
}
.thumbnail-upload-icon{
  flex-shrink:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:rgba(91,100,122,.48);
}
.thumbnail-upload-text{
  min-width:0;
  color:rgba(91,100,122,.48);
  font-size:14px;
  font-weight:500;
  letter-spacing:.08em;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.thumbnail-help-button{
  width:28px;
  height:28px;
  border:1px solid rgba(58,166,255,.22);
  border-radius:999px;
  background:rgba(255,255,255,.96);
  color:rgba(58,166,255,.78);
  box-shadow:0 8px 20px rgba(24,32,51,.10);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  font-family:inherit;
  font-size:15px;
  font-weight:900;
  line-height:1;
  cursor:help;
  position:relative;
  transition:border-color .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease;
}
.thumbnail-help-button:hover,
.thumbnail-help-button:focus-visible{
  border-color:rgba(58,166,255,.46);
  color:#3aa6ff;
  box-shadow:0 12px 26px rgba(58,166,255,.18);
  transform:translateY(-1px);
}
.thumbnail-help-popup{
  position:absolute;
  right:0;
  bottom:calc(100% + 10px);
  z-index:20;
  width:min(280px, calc(100vw - 48px));
  padding:12px 14px;
  border:1px solid rgba(58,166,255,.16);
  border-radius:14px;
  background:#fff;
  color:#5b647a;
  box-shadow:0 18px 42px rgba(24,32,51,.18);
  font-size:12px;
  font-weight:800;
  line-height:1.65;
  text-align:left;
  opacity:0;
  pointer-events:none;
  transform:translateY(4px);
  transition:opacity .16s ease, transform .16s ease;
}
.thumbnail-help-button:hover .thumbnail-help-popup,
.thumbnail-help-button:focus-visible .thumbnail-help-popup{
  opacity:1;
  transform:translateY(0);
}
.thumbnail-upload-help{
  position:absolute;
  right:18px;
  top:50%;
  transform:translateY(-50%);
}
.thumbnail-upload-help:hover,
.thumbnail-upload-help:focus-visible{
  transform:translateY(calc(-50% - 1px));
}
.thumbnail-creator-field{
  margin-top:18px;
  text-align:left;
}
.thumbnail-creator-label{
  display:block;
  margin-bottom:8px;
  color:#182033;
  font-size:12px;
  font-weight:900;
  letter-spacing:.04em;
}
.thumbnail-creator-row{
  display:flex;
  align-items:center;
  gap:8px;
}
.thumbnail-creator-input{
  min-width:0;
  width:100%;
  height:44px;
  border:1px solid rgba(24,32,51,.12);
  border-radius:14px;
  background:rgba(255,255,255,.94);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9), 0 8px 20px rgba(24,32,51,.08);
  color:#182033;
  font-family:inherit;
  font-size:14px;
  font-weight:800;
  outline:none;
  padding:0 14px;
  transition:border-color .18s ease, box-shadow .18s ease;
}
.thumbnail-creator-input::placeholder{
  color:rgba(91,100,122,.38);
}
.thumbnail-creator-input:focus{
  border-color:rgba(58,166,255,.46);
  box-shadow:0 0 0 4px rgba(58,166,255,.12), 0 10px 24px rgba(24,32,51,.10);
}
.thumbnail-creator-help .thumbnail-help-popup{
  right:-4px;
}
.thumbnail-upload-status{
  min-height:18px;
  margin-top:8px;
  padding:10px 18px;
  color:rgba(91,100,122,.68);
  font-size:12px;
  font-weight:700;
}
.thumbnail-upload-status.error{
  color:#b33068;
}
.thumbnail-upload-status.success{
  color:#248f7c;
}
@media (max-width:760px){
  .thumbnail-assets-grid{
    grid-template-columns:1fr;
    gap:22px;
  }
  .thumbnail-upload-drop{
    min-height:64px;
    align-items:flex-start;
    flex-direction:column;
    gap:4px;
    border-radius:18px;
    padding-right:56px;
  }
  .thumbnail-upload-text{
    white-space:normal;
    letter-spacing:0;
  }
  .thumbnail-upload-help{
    top:18px;
    transform:none;
  }
  .thumbnail-upload-help:hover,
  .thumbnail-upload-help:focus-visible{
    transform:translateY(-1px);
  }
}

/* --- bottom action links --- */
.td-action-links-section{
  margin-top:4px;
}
.td-action-links{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:16px;
}
.td-action-card{
  min-height:170px;
  padding:24px 18px 22px;
  border-radius:18px;
  border:1px solid rgba(24,32,51,.08);
  background:
    radial-gradient(800px 200px at 10% 0%, rgba(58,166,255,.08), transparent 55%),
    radial-gradient(500px 200px at 90% 0%, rgba(123,92,255,.1), transparent 30%);
  box-shadow:0 3px 7px rgba(24, 32, 61, .45);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:rgba(24,32,51,.88);
  text-decoration:none;
  position:relative;
  overflow:hidden;
  transition:transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .22s ease, border-color .22s ease;
}
.td-action-card::before{
  content:'';
  position:absolute;
  inset:0;
  background:radial-gradient(180px 120px at 50% 0%, rgba(58,166,255,.08), transparent 64%);
  opacity:.75;
  pointer-events:none;
}
.td-action-card:hover{
  transform:translateY(-5px);
  border-color:rgba(58,166,255,.22);
  box-shadow:0 14px 34px rgba(58,166,255,.12);
}
.td-action-card > *{
  position:relative;
  z-index:1;
}
.td-action-icon{
  width:46px;
  height:46px;
  border-radius:15px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-bottom:14px;
  background:rgba(58,166,255,.10);
  color:#3aa6ff;
}
.td-action-icon svg{
  width:22px;
  height:22px;
}
.td-action-card.feedback .td-action-icon{
  background:rgba(123,92,255,.10);
  color:#7b5cff;
}
.td-action-card.contact .td-action-icon{
  background:rgba(53,208,186,.12);
  color:#35d0ba;
}
.td-action-title{
  font-size:18px;
  font-weight:900;
  line-height:1.35;
  margin-bottom:8px;
}
.td-action-text{
  font-size:13px;
  font-weight:800;
  line-height:1.55;
  color:rgba(91,100,122,.72);
}
.td-random-tools-section{
  padding-bottom:42px;
}
.td-random-tools-heading{
  display:flex;
  align-items:center;
  gap:12px;
  margin:18px 0;
  border-bottom:1px solid #ddddef;
  border-top:1px solid #ddddef;
  padding:10px 20px;
  font-size:24px;
  line-height:1.35;
  font-weight:900;
  color:rgba(24,32,51,.86);
  text-align:left;
}
.td-random-tools-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border-radius:14px;
  background:rgba(58,166,255,.08);
  font-size:22px;
  flex-shrink:0;
}
.td-random-tools-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:16px;
}
.td-random-thumb-wrap{
  position:relative;
  min-width:0;
}
.td-random-thumb-card{
  display:block;
  position:relative;
  aspect-ratio:16 / 9;
  border-radius:16px;
  overflow:hidden;
  background:
    radial-gradient(240px 140px at 20% 20%, rgba(255,255,255,.70), rgba(255,255,255,0)),
    linear-gradient(135deg, rgba(58,166,255,.82), rgba(123,92,255,.72));
  box-shadow:0 2px 6px rgba(24, 32, 61, .3);
  text-decoration:none;
  transition:transform .24s cubic-bezier(.34,1.56,.64,1), box-shadow .24s ease, border-color .24s ease;
}
.td-random-thumb-card:hover{
  transform:translateY(-5px);
  border-color:rgba(58,166,255,.28);
  box-shadow:0 14px 34px rgba(58,166,255,.16);
}
.td-random-thumb-card img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
  transition:transform .38s cubic-bezier(.34,1.56,.64,1), filter .24s ease;
}
.td-random-thumb-card:hover img{
  transform:scale(1.04);
  filter:brightness(.88);
}
.td-random-thumb-title{
  position:absolute;
  top:50%;
  left:0;
  right:0;
  min-height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:10px 16px;
  background:rgba(0,0,0,.76);
  color:#fff;
  font-size:14px;
  font-weight:900;
  line-height:1.35;
  text-align:center;
  transform:translate(100%, -50%);
  transition:transform .28s cubic-bezier(.22,1,.36,1);
  pointer-events:none;
}
.td-random-thumb-card:hover .td-random-thumb-title,
.td-random-thumb-card:focus-visible .td-random-thumb-title{
  transform:translate(0, -50%);
}
@media (max-width:760px){
  .td-action-links{
    grid-template-columns:1fr;
  }
  .td-action-card{
    min-height:142px;
  }
  .td-random-tools-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:12px;
  }
  .td-random-thumb-title{
    font-size:12px;
    min-height:38px;
    padding:8px 10px;
  }
}
@media (max-width:480px){
  .td-random-tools-grid{
    grid-template-columns:1fr;
  }
}

/* --- demo --- */
.demo {
  position: relative;
  border-radius: 16px;
  padding: 18px;
  background-image:
    linear-gradient(45deg,
      #f3edff 25%, transparent 25%, transparent 50%,
      #eee6ff 50%, #eee6ff 75%, transparent 75%, transparent),
    linear-gradient(45deg,
      #faf6ff 25%, transparent 25%, transparent 50%,
      #f4edff 50%, #f4edff 75%, transparent 75%, transparent);
  background-size: 22px 22px;
  background-position: 0 0, 9px 9px;
  background-repeat: repeat;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: 10px;
  overflow: hidden;
  width: 100%;
  text-align: center;
  border: 2px solid #c258ff;
  box-shadow: 0 4px 20px rgba(76,0,91,.15);
  animation: stripe-slide 3s linear infinite;
}
.demo-expand-btn {
  position:absolute;
  top:4px;
  right:4px;
  z-index:3;
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:38px;
  padding:6px 9px;
  border:1px solid rgba(123,92,255,.22);
  border-radius:10px;
  background:rgba(255,255,255,.92);
  color:#5a3dbf;
  box-shadow:0 5px 18px rgba(24,32,51,.14);
  cursor:pointer;
  font-family:inherit;
  font-size:12px;
  font-weight:900;
  line-height:1;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.demo-expand-btn:hover {
  background:#fff;
  transform:translateY(-2px);
  box-shadow:0 8px 24px rgba(123,92,255,.2);
}
.demo-expand-btn:active {
  transform:translateY(0);
}
.demo-expand-btn:disabled {
  opacity:.48;
  cursor:not-allowed;
  transform:none;
  box-shadow:0 3px 12px rgba(24,32,51,.08);
}
.demo-expand-btn svg {
  flex:0 0 auto;
}
@keyframes stripe-slide {
  0% { background-position: 0 0, 9px 9px; }
  100% { background-position: 22px 0, 31px 9px; }
}
.demo iframe {
  border: 0; display: block;
  background: rgba(255, 255, 255, 0.6);
  transform-origin: 0 0;
  box-shadow: 0 0 15px rgba(0,0,0,.12);
  border-radius:10px;
}

body.demo-modal-open {
  overflow:hidden;
}
.demo-modal {
  position:fixed;
  inset:0;
  z-index:10000;
  display:none;
}
.demo-modal.is-open {
  display:block;
}
.demo-modal-backdrop {
  position:absolute;
  inset:0;
  background:rgba(10,12,24,.78);
  backdrop-filter:blur(7px);
}
.demo-modal-dialog {
  position:absolute;
  top:50%;
  left:50%;
  width:min(96vw, 1680px);
  height:min(92vh, 980px);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  transform:translate(-50%, -50%);
  border:1px solid rgba(255,255,255,.22);
  border-radius:16px;
  background:rgba(255,255,255,.96);
  box-shadow:0 24px 80px rgba(0,0,0,.34);
}
.demo-modal-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 16px;
  border-bottom:1px solid rgba(24,32,51,.08);
  background:linear-gradient(135deg, rgba(255,255,255,.98), rgba(247,243,255,.98));
}
.demo-modal-title {
  font-size:15px;
  font-weight:900;
  color:rgba(24,32,51,.86);
}
.demo-modal-size {
  min-height:16px;
  margin-top:2px;
  font-size:11px;
  font-weight:800;
  color:rgba(91,100,122,.7);
}
.demo-modal-close {
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  border:1px solid rgba(24,32,51,.08);
  border-radius:50%;
  background:#fff;
  color:rgba(24,32,51,.62);
  cursor:pointer;
  transition:transform .18s ease, color .18s ease, box-shadow .18s ease;
}
.demo-modal-close:hover {
  color:#ff5aa5;
  transform:scale(1.06);
  box-shadow:0 6px 18px rgba(24,32,51,.12);
}
.demo-modal-stage {
  position:relative;
  flex:1;
  min-height:0;
  overflow:hidden;
  padding:18px;
  background-image:
    linear-gradient(45deg,
      #f3edff 25%, transparent 25%, transparent 50%,
      #eee6ff 50%, #eee6ff 75%, transparent 75%, transparent),
    linear-gradient(45deg,
      #faf6ff 25%, transparent 25%, transparent 50%,
      #f4edff 50%, #f4edff 75%, transparent 75%, transparent);
  background-size: 22px 22px;
  background-position: 0 0, 9px 9px;
  border-top:1px solid rgba(194,88,255,.18);
}
.demo-modal-stage iframe {
  position:absolute;
  top:18px;
  left:18px;
  border:0;
  display:block;
  background:rgba(255,255,255,.65);
  transform-origin:0 0;
  border-radius:10px;
  box-shadow:0 0 22px rgba(0,0,0,.16);
}
@media (max-width:760px) {
  .demo-expand-btn {
    top:4px;
    right:4px;
    min-height:34px;
    padding:6px 9px;
  }
  .demo-modal-dialog {
    width:96vw;
    height:90vh;
    border-radius:12px;
  }
  .demo-modal-head {
    padding:12px;
  }
  .demo-modal-stage {
    padding:10px;
  }
  .demo-modal-stage iframe {
    top:10px;
    left:10px;
  }
}

/* --- text boxes --- */
.htmlbox {
  color: rgba(24, 32, 51, .82);
  font-size: 18px;
  line-height: 2;
  font-weight: 600;
}
.htmlbox img{
  max-width:100%; height:auto;
  border-radius: 14px;
  border:1px solid rgba(24,32,51,.06);
  margin: 10px 0;
}
.htmlbox a{
  color: #3aa6ff;
  font-weight:800;
  text-decoration: underline;
}
.changelog-row > td{
  vertical-align:top;
}
.changelog-body-cell{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:4px;
}
.changelog-body-content{
  width:100%;
  min-width:0;
}
.changelog-list{
  margin:0;
  padding:0;
  list-style:none;
}
.changelog-list li{
  position:relative;
  padding-left:1em;
  overflow-wrap:anywhere;
}
.changelog-list li::before{
  content:"・";
  position:absolute;
  top:0;
  left:0;
}
.changelog-archive-link{
  align-self:flex-end;
  font-size:11px;
  line-height:1.3;
  font-weight:900;
  white-space:nowrap;
}

.muted {
  color: rgba(91, 100, 122, .75);
  font-size: 13px;
  font-weight: 600;
}
.small-sep{
  margin-top: 12px;
  border-top: 1px solid rgba(24,32,51,.06);
  padding-top: 12px;
}

/* --- two-col --- */
.two-col{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
}
@media (max-width: 980px){ .two-col{ grid-template-columns: 1fr; } }

/* --- ideas --- */
.idea-p{
  margin: 0 0 7px;
  font-size: 14px;
  line-height: 1.8;
  font-weight: 700;
  color: rgba(24,32,51,.75);
}
.idea-p strong {
  font-weight: 900;
  font-size: 16px;
}

/* --- lists --- */
.bullets {
  margin: 0; padding-left: 20px;
  color: rgba(24, 32, 51, .75);
  font-size: 14px; line-height: 1.8;
  font-weight: 700;
}
.bullets li { margin: 8px 0; padding: 0; }
.bullets li strong{ font-weight: 900; }

#installBox ul, #usageBox ul, #rulesBox ul{
  color:rgba(24,32,51,.75);
  margin: 8px 0 8px 20px;
  padding: 0;
  font-size: 19px; font-weight: 700;
  line-height: 1.8;
  list-style: disc;
}
#installBox li, #usageBox li, #rulesBox li{
  padding: 6px 0 15px;
}
#installBox ul ul, #usageBox ul ul{
  margin:1px 0 5px 16px;
  font-size: 16px;
  color:rgba(24,32,51,.55);
  list-style: none;
}
#installBox li li, #usageBox li li, #rulesBox li li{
  padding: 1px 0;
}
#installBox, #usageBox, #rulesBox{
  font-size: 14px;
  line-height: 1.8;
  color: rgba(24,32,51,.65);
}

