:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #f5f5f5;
  background: #101010;
  color-scheme: dark;
  --aalto-yellow: #ffcd00;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  padding: 64px 24px;
  background: linear-gradient(#00000073, #00000073),
    url('assets/100STARTUPS Background.png') center / cover no-repeat;
}
.badge-panel {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 32px;
  background: #1b1b1b;
  border: 1px solid #ffffff26;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}
.wordmark { display: block; flex-shrink: 0; }
.brand-image { display: block; position: relative; width: 180px; height: 30px; overflow: hidden; }
.brand-image img { position: absolute; width: 198.2px; max-width: none; height: auto; left: -9.16px; top: -15.7px; }
h1 { margin: 0; font-size: 20px; line-height: 1.35; font-weight: 700; }
.preview { width: min(100%, 450px); margin: 0 auto 24px; }
canvas { display: block; width: 100%; height: auto; background: #080808; outline: 1px solid #505050; }
input, button { font: inherit; }
input:not([type=file]):not([type=range]) {
  display: block;
  width: 100%;
  margin: 0 0 14px;
  padding: 10px 8px;
  border: 0;
  border-bottom: 1px solid #757575;
  border-radius: 0;
  color: #fff;
  background: transparent;
  font-size: 18px;
}
input::placeholder { color: #d6d6d6; opacity: 1; }
input:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--aalto-yellow);
  outline-offset: 4px;
}
.upload-label { display: block; margin: 24px 0 8px; color: #dedede; font-size: 14px; }
.upload { border: 1px dashed #777; border-radius: 8px; padding: 24px 12px; }
input[type=file] { width: 100%; max-width: 100%; font-size: 13px; color: #dedede; }
input::file-selector-button {
  margin-right: 12px;
  padding: 7px 12px;
  border: 1px solid #777;
  border-radius: 3px;
  background: #333;
  color: #fff;
  cursor: pointer;
}
#photoControls { margin: 20px 0 0; padding: 0 16px; border: 1px solid #555; }
#photoControls[open] { padding-bottom: 16px; }
#photoControls summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; font-size: 14px; list-style: none; cursor: pointer; }
#photoControls summary::-webkit-details-marker { display: none; }
.expand-icon::before { content: '+'; font-size: 22px; line-height: 1; }
#photoControls[open] .expand-icon::before { content: '−'; }
#photoControls label { display: block; margin: 8px 0 4px; font-size: 13px; color: #dedede; }
input[type=range] { width: 100%; accent-color: var(--aalto-yellow); }
button { cursor: pointer; }
.text-button { border: 0; padding: 10px 0 0; background: none; color: #ddd; font-size: 13px; text-decoration: underline; }
#downloadBtn {
  width: 100%;
  margin-top: 28px;
  padding: 12px 20px;
  border: 0;
  border-radius: 2px;
  background: var(--aalto-yellow);
  color: #111;
  font-size: 20px;
  font-weight: 700;
}
#downloadBtn:hover { background: #f3c300; }
#downloadBtn:disabled { opacity: .5; cursor: wait; }
#status { margin: 16px 0 0; font-size: 13px; line-height: 1.5; color: #c2c2c2; }
#status:empty { display: none; }
#status[data-error=true] { color: #ff9a91; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
@media (max-width: 600px) {
  body { padding: 20px 12px; }
  .badge-panel { padding: 24px 18px; }
  header { flex-direction: column; gap: 12px; margin-bottom: 24px; }
  h1 { font-size: 18px; text-align: center; }
}
