.template-board{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;max-width:460px;margin:12px auto;background:#f4d6ef;padding:10px;border-radius:14px}.template-board[data-theme=sky]{background:#bfe8ff}.template-board[data-theme=forest]{background:#bce6a5}.template-board[data-theme=space]{background:#4a4d89}.template-cell{min-width:0;aspect-ratio:1;font-size:clamp(22px,6vw,40px);padding:0;border:1px solid #9e85bd;border-radius:8px;background:#fff9ff;color:#32284a;min-height:44px}.template-cell:disabled{opacity:.85}.template-controls{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}.template-controls button{padding:10px 16px;min-height:44px;border-radius:10px;border:0;background:#bfa8ed;color:#281c48;font-weight:800}select{font:inherit;color:#fff;background:#211447;padding:10px;border:1px solid #b5a4e2;border-radius:8px;min-height:44px}

#game-icon-preview{display:block;width:104px;height:104px;border:2px solid #edce89;border-radius:50%;margin-bottom:10px}
#capture-edit{margin-bottom:14px}
#capture-edit summary{cursor:pointer}
.member-panel #capture-edit input[type="range"] {
  appearance: none;
  -webkit-appearance: none;
  width: 9rem;
  height: 2rem;
  min-height: 0;
  padding: 0;
  border: 0;
  background: center / calc(100% - 1rem) 4px no-repeat linear-gradient(#829395, #829395);
  vertical-align: middle;
}
#capture-edit input[type="range"]::-webkit-slider-runnable-track { background: transparent; }
#capture-edit input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1rem;
  height: 1rem;
  border: 0;
  border-radius: 50%;
  background: #a2ccf9;
}
#capture-edit input[type="range"]::-moz-range-track { background: transparent; }
#capture-edit input[type="range"]::-moz-range-thumb {
  width: 1rem;
  height: 1rem;
  border: 0;
  border-radius: 50%;
  background: #a2ccf9;
}
#capture-edit input[type="range"]:focus-visible { outline: 2px solid #edce89; }
#saved-panel h2 { margin: 0 0 .5rem; }
#saved-panel > p { margin: 0 0 .9rem; }
#saved-sort { margin-inline-start: .5rem; }
#saved-works {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
  border-top: 1px solid #4b6265;
}
#saved-works > li { padding-block: .75rem; border-bottom: 1px solid #4b6265; }
.saved-work-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem;
}
.saved-work-row h3 { margin: 0; font-size: 1rem; overflow-wrap: anywhere; }
.saved-work-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .2rem .7rem;
  margin: .35rem 0 0;
  font-size: .8125rem;
  color: #cad8d9;
}
.saved-work-scan[data-status="no_detection"] { color: #b9e6ce; }
.saved-work-scan[data-status="detected"], .saved-work-scan[data-status="error"] { color: #ffd1bd; }
.saved-work-row .pill { min-height: 44px; padding-inline: .75rem; white-space: nowrap; }
.asset-background{display:block;max-width:100%;max-height:240px;margin:0 auto .5rem}
.asset-target{width:80%;height:80%;object-fit:contain}
#asset-studio{margin:1rem 0}
#asset-studio summary{cursor:pointer}
#asset-studio{line-height:1.65;letter-spacing:.025em}
#asset-studio > section{display:grid;justify-items:start;gap:.65rem;margin-top:1.1rem}
#asset-studio > section + section{padding-top:1rem;border-top:1px solid #527276}
#asset-studio > section h3{margin:0}
#asset-studio > section .pill{display:inline-block}
#asset-studio > section > div{overflow-wrap:anywhere}
.member-panel .asset-checkbox{display:flex;align-items:flex-start;gap:.55rem;line-height:1.5;margin:.65rem 0}
.member-panel .asset-checkbox input[type=checkbox]{width:1rem;height:1rem;min-height:0;margin:.25em 0 0;padding:0;flex:none}
#asset-metadata section{margin-top:1rem;border-top:1px solid #527276;padding-top:.75rem}
#asset-metadata h2{font-size:1rem;overflow-wrap:anywhere}
#asset-metadata textarea{box-sizing:border-box;width:100%;min-height:5rem;padding:.7rem;font:inherit}

#ai-prompt {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 14rem;
  padding: 0.875rem 1rem;
  font: inherit;
  line-height: 1.55;
  resize: vertical;
}
#ai-prompt::placeholder {
  color: #a6babf;
  opacity: 1;
}
#ai-result, #ai-time {
  margin: 0;
}
#ai-result:empty, #ai-time:empty {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
@media (max-width: 520px) {
  #ai-prompt { min-height: 18rem; }
}

#similar-game-list{display:flex;flex-wrap:wrap;gap:1rem;padding:0;list-style:none}
#similar-game-list a{display:flex;align-items:center;gap:.55rem}
#similar-game-list img{border-radius:50%;object-fit:cover}

.similar-clock{border:1px solid currentColor;border-radius:50%;width:2.4rem;aspect-ratio:1;display:grid;place-items:center;font-size:1.6rem}
