.ico{width:18px;height:18px;vertical-align:-3px;margin-right:8px;fill:currentColor}

:root{
  --bg-color:#000000;
  --accent-color:#ffcc66;
  --ui-color:#ffdd99;
}

.task,.problem,.solution{
  word-wrap:break-word;
  overflow-wrap:break-word;
  word-break:break-word;
}

*{
  box-sizing:border-box;
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
}

html,body{
  height:100%;
}

body{
  margin:0;

  /* фикс мобильной высоты */
  min-height:100vh;
  min-height:100svh;
  min-height:100dvh;

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

  background:
    radial-gradient(circle at top,var(--accent-color),transparent 60%),
    var(--bg-color);

  color:var(--ui-color);
}

.card{
  width:100%;
  max-width:620px;
  background:rgba(255,255,255,.12);
  backdrop-filter:blur(18px);
  border-radius:22px;
  padding:26px;
  box-shadow:0 0 28px rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.12);
  position:relative;
}

h1{
  margin:0 0 14px;
  font-size:22px;
  display:flex;
  align-items:center;
  gap:8px;
}

h2{margin:16px 0 10px;font-size:18px}
h3{margin:14px 0 8px;font-size:16px}
p{line-height:1.55;margin:10px 0}

a{
  color:inherit;
  text-decoration:none;
}

.back{
  display:inline-block;
  margin-top:16px;
  opacity:.85;
}

.back:hover{
  opacity:1;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(0,0,0,.28);
  color:var(--ui-color);
  cursor:pointer;
  user-select:none;
  transition:transform .12s ease,opacity .12s ease,background .12s ease;
}

.btn:hover{
  background:rgba(0,0,0,.36);
}

.btn:active{
  transform:scale(.98);
}

.toolbar{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:8px 0 14px;
}

@keyframes btnPop{
  0%{transform:scale(1)}
  40%{transform:scale(.86)}
  100%{transform:scale(1)}
}

.btn.squish{
  animation:btnPop .22s ease;
}

#colorWheel{
  position:fixed;
  bottom:20px;
  right:20px;
  background:rgba(0,0,0,.45);
  padding:10px;
  border-radius:18px;
  backdrop-filter:blur(10px);
  display:flex;
  gap:8px;
  z-index:9999;
}

#colorWheel input[type="color"]{
  width:42px;
  height:42px;
  border-radius:50%;
  border:none;
  cursor:pointer;
  padding:0;
  background:transparent;
}

table{
  border-collapse:collapse;
}

th,td{
  padding:6px;
  border:1px solid var(--ui-color);
}

.card.home{
  max-width:560px;
}

.buttons{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:14px;
}

.btn.full{
  grid-column:1/-1;
}

/* мобильная версия */

@media (max-width:600px){

  body{
    padding:
      calc(14px + env(safe-area-inset-top))
      14px
      calc(14px + env(safe-area-inset-bottom))
      14px;

    align-items:center;
    justify-content:center;

    overflow-y:auto;
  }

  .card{
    padding:20px;
    border-radius:18px;
    max-width:720px;
    width:100%;
    margin:auto;
  }

  .buttons{
    grid-template-columns:1fr;
  }

  #colorWheel{
    right:12px;
    bottom:12px;
    transform:scale(.92);
    transform-origin:bottom right;
  }
}
